This commit is contained in:
huixisheng 2017-09-29 09:43:08 +02:00 committed by Sergio Crisostomo
parent a65aef1a56
commit 0a0971da1d
4 changed files with 38 additions and 10 deletions

View file

@ -2,8 +2,9 @@
* 公共配置
*/
var path = require('path');
var webpack = require('webpack');
function resolve (dir) {
return path.join(__dirname, '..', dir)
return path.join(__dirname, '..', dir);
}
module.exports = {
@ -63,5 +64,8 @@ module.exports = {
'vue': 'vue/dist/vue.esm.js',
'@': resolve('src')
}
}
},
plugins: [
new webpack.optimize.ModuleConcatenationPlugin()
]
};