You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
927 B
35 lines
927 B
/**
|
|
* 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]'
|
|
}
|
|
]
|
|
}
|
|
};
|