-
Notifications
You must be signed in to change notification settings - Fork 3
/
vbuild.example.js
42 lines (40 loc) · 1004 Bytes
/
vbuild.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const path = require('path');
const webpack = require('webpack');
const resolve = dir => path.join(__dirname, '..', dir);
module.exports = {
entry: 'example/index.js',
dist: 'dist-example',
webpack: {
output: {
path: path.resolve(__dirname, 'dist-example/'),
publicPath: ''
}
},
filename: {
js: '[name].js',
css: '[name].css'
},
html: {
title: 'VueRichEditor'
},
copy: true,
minimize: false,
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules(?!\/quill-image-drop-module|quill-image-resize-module)/,
loader: 'babel-loader',
include: [resolve('src')],
options: {
presets: ['es2015', 'stage-2'],
plugins: ['transform-runtime']
},
query: {}
}]
},
plugins: [
new webpack.ProvidePlugin({
'window.Quill': 'quill'
})
]
};