Authored by ccbikai

vue ge

... ... @@ -201,9 +201,14 @@ gulp.task('webpack-dev-server', () => {
// webpack compile in pro
gulp.task('webpack', (done) => {
var proConfig = Object.assign({}, webpackConfig);
const proConfig = Object.assign({}, webpackConfig);
proConfig.output.path = dist.js;
proConfig.plugins.push(new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}));
proConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
... ...
... ... @@ -7,4 +7,4 @@ new Vue({
components: {
app: App
}
})
\ No newline at end of file
});
... ...