2016-09-29 05:10:58 +00:00
|
|
|
|
2016-10-05 05:55:53 +00:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var path = require('path');
|
2016-09-29 05:10:58 +00:00
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
entry: {
|
|
|
|
'salix.app': ['@salix/app']
|
|
|
|
},
|
|
|
|
output: {
|
2016-10-05 06:08:36 +00:00
|
|
|
path: path.join(__dirname, 'build'),
|
2016-09-29 05:10:58 +00:00
|
|
|
filename: '[name].js',
|
2016-10-05 06:08:36 +00:00
|
|
|
publicPath: 'build/',
|
|
|
|
chunkFilename: "[name].js"
|
2016-09-29 05:10:58 +00:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
query: {
|
|
|
|
presets: ['es2015']
|
|
|
|
}
|
2016-10-05 06:08:36 +00:00
|
|
|
}, {
|
2016-09-29 05:28:56 +00:00
|
|
|
test: /\.html$/,
|
|
|
|
loader: 'raw'
|
2016-09-29 05:10:58 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
modulesDirectories: [
|
|
|
|
__dirname,
|
|
|
|
'node_modules'
|
|
|
|
]
|
2016-10-05 06:08:36 +00:00
|
|
|
}
|
2016-09-29 05:10:58 +00:00
|
|
|
};
|