forked from youseries/ureport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
35 lines (35 loc) · 927 Bytes
/
webpack.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
/**
* Created by Jacky.gao on 2016/5/17.
*/
var webpack = require('webpack');
module.exports = {
entry: {
designer:'./src/index.js',
preview:'./src/preview.js'
},
output: {
path: '../ureport2-console/src/main/resources/asserts/js',
filename: '[name].bundle.js'
},
module: {
loaders: [
{
test: /\.(jsx|js)?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['react', 'es2015'],
compact:true
}
},
{
test: /\.css$/,
loader: "style-loader!css-loader"
},
{
test: /\.(eot|woff|woff2|ttf|svg|png|jpg)$/,
loader: 'url-loader?limit=1000000&name=[name]-[hash].[ext]'
}
]
}
};