diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 25ecf93..8f52341 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -130,11 +130,11 @@ const devWebpackConfig = merge(baseWebpackConfig, { ignore: ['.*'] }]), - new CopyWebpackPlugin([{ - from: path.resolve(__dirname, '../static/newProduct'), - to: config.dev.newProductRoot, - ignore: ['.*'] - }]), + // new CopyWebpackPlugin([{ + // from: path.resolve(__dirname, '../static/newProduct'), + // to: config.dev.newProductRoot, + // ignore: ['.*'] + // }]), ], }) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 1bf00d5..01ae133 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -151,11 +151,11 @@ const webpackConfig = merge(baseWebpackConfig, { }]), - new CopyWebpackPlugin([{ - from: path.resolve(__dirname, '../static/newProduct'), - to: config.build.newProductRoot, - ignore: ['.*'] - }]), + // new CopyWebpackPlugin([{ + // from: path.resolve(__dirname, '../static/newProduct'), + // to: config.build.newProductRoot, + // ignore: ['.*'] + // }]), ], }) diff --git a/config/index.js b/config/index.js index 3b36a03..eb3e2b8 100644 --- a/config/index.js +++ b/config/index.js @@ -17,7 +17,7 @@ module.exports = { // 静态资源目录 assetsSubDirectory: 'static', - newProductRoot: path.resolve(__dirname, '../dist/newProduct'), + // newProductRoot: path.resolve(__dirname, '../dist/newProduct'), // 代理服务器基础配置 可在 process.env 中修改 proxyTable: { @@ -72,7 +72,7 @@ module.exports = { // bundle的生成地址 assetsRoot: path.resolve(__dirname, '../dist'), - newProductRoot: path.resolve(__dirname, '../dist/newProduct'), + // newProductRoot: path.resolve(__dirname, '../dist/newProduct'), // bundle生成的文件 index: path.resolve(__dirname, '../dist/index.html'),