|
|
@ -21,6 +21,9 @@ module.exports = {
|
|
|
|
publicPath: "./",
|
|
|
|
publicPath: "./",
|
|
|
|
lintOnSave: false,
|
|
|
|
lintOnSave: false,
|
|
|
|
configureWebpack: config => {
|
|
|
|
configureWebpack: config => {
|
|
|
|
|
|
|
|
//添加版本号
|
|
|
|
|
|
|
|
config.output.filename = `static/js/[name].${version}.js`;
|
|
|
|
|
|
|
|
config.output.chunkFilename = `static/js/[name].${version}.js`
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
// 配置productionGzip-高级的方式
|
|
|
|
// 配置productionGzip-高级的方式
|
|
|
|
// 配置参数详解
|
|
|
|
// 配置参数详解
|
|
|
|