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