/**
- Plugins for webpack configuration.
/
const plugins = [
/- Plugin: BannerPlugin
- Description: Adds a banner to the top of each generated chunk.
- See: https://webpack.js.org/plugins/banner-plugin/
/
new webpack.BannerPlugin({
banner: '// { "framework": "Vue"} \n',
raw: true,
exclude: 'Vue'
}),
/* - 使用压缩
*/
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
//保留banner
comments: '// { "framework": "Vue"} \n',
sourceMap: true
})
];
网友评论