separate views bundle
This commit is contained in:
@@ -3,7 +3,6 @@ var path = require('path');
|
||||
|
||||
|
||||
// Naming and path settings
|
||||
var appName = 'app';
|
||||
var entryPoint = './src/main.js';
|
||||
var exportPath = path.resolve(__dirname, './build');
|
||||
|
||||
@@ -27,9 +26,6 @@ if (env === 'production') {
|
||||
}
|
||||
));
|
||||
|
||||
appName = appName + '.js';
|
||||
} else {
|
||||
appName = appName + '.js';
|
||||
}
|
||||
|
||||
// Main Settings config
|
||||
@@ -43,7 +39,8 @@ module.exports = {
|
||||
output: {
|
||||
path: exportPath,
|
||||
publicPath: 'build/',
|
||||
filename: appName
|
||||
filename: '[name].bundle.js',
|
||||
chunkFilename: '[name].bundle.js'
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
@@ -65,7 +62,8 @@ module.exports = {
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: ['es2015']
|
||||
presets: ['es2015'],
|
||||
plugins: ['syntax-dynamic-import']
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user