From 338ce524b0fd650e363be18f86a1c2d2cbaff968 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 22 Sep 2025 11:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4newProduct=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.dev.conf.js | 10 +++++----- build/webpack.prod.conf.js | 10 +++++----- config/index.js | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) 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'),