-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvbuild.config.js
42 lines (40 loc) · 970 Bytes
/
vbuild.config.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 webpack = require('webpack');
const path = require('path');
require('jquery');
const resolve = dir => path.join(__dirname, '..', dir);
module.exports = {
entry: 'src/index.js',
moduleName: 'VueRichEditor',
html: false,
minimize: false,
sourceMap: false,
extract: false,
filename: {
js: 'index.js'
},
copy: true,
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
})
],
module: {
loaders: [
{
test: /\.scss$/,
loader: 'style!css!sass'
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src')],
options: {
presets: ['es2015', 'stage-2'],
plugins: ['transform-runtime']
}
}
]
}
};