From abe1b229e09ec6fed2a6fd0721365eda6bf4bad8 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 22 Sep 2025 11:58:27 +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 ccec260..f6a1df8 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 ad8750c..72b50fb 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -143,11 +143,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 b3f8fc1..4e4494f 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'),