salix/webpack.config.js

79 lines
1.2 KiB
JavaScript
Raw Normal View History

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 =
2016-10-05 06:03:43 +00:00
<<<<<<< HEAD
2016-10-05 05:55:53 +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'
2016-09-29 05:10:58 +00:00
}
2016-10-05 05:55:53 +00:00
]
},
resolve: {
modulesDirectories: [
__dirname,
'node_modules'
]
}
};
2016-10-05 06:03:43 +00:00
=======
2016-09-29 05:10:58 +00:00
{
entry: {
'salix.core': ['@salix/core'],
'salix.app': ['@salix/app']
},
output: {
path: path.join (__dirname, 'build'),
filename: '[name].js',
publicPath: 'build/'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: {
presets: ['es2015']
}
},{
test: /\.html$/,
loader: 'raw'
2016-09-29 05:10:58 +00:00
}
]
},
resolve: {
modulesDirectories: [
__dirname,
'node_modules'
]
},
plugins: [
new webpack.optimize.CommonsChunkPlugin ({
2016-09-29 13:12:20 +00:00
name: 'salix.core'
2016-09-29 05:10:58 +00:00
})
]
};
2016-10-05 06:03:43 +00:00
>>>>>>> 123932ba64bf824cbdc2bd9fe04663b2e539eea3
2016-09-29 05:10:58 +00:00