Browse Source

删除newProduct文件

master
liaoxinyu 3 months ago
parent
commit
abe1b229e0
  1. 10
      build/webpack.dev.conf.js
  2. 10
      build/webpack.prod.conf.js
  3. 4
      config/index.js

10
build/webpack.dev.conf.js

@ -130,11 +130,11 @@ const devWebpackConfig = merge(baseWebpackConfig, {
ignore: ['.*'] ignore: ['.*']
}]), }]),
new CopyWebpackPlugin([{ // new CopyWebpackPlugin([{
from: path.resolve(__dirname, '../static/newProduct'), // from: path.resolve(__dirname, '../static/newProduct'),
to: config.dev.newProductRoot, // to: config.dev.newProductRoot,
ignore: ['.*'] // ignore: ['.*']
}]), // }]),
], ],
}) })

10
build/webpack.prod.conf.js

@ -143,11 +143,11 @@ const webpackConfig = merge(baseWebpackConfig, {
}]), }]),
new CopyWebpackPlugin([{ // new CopyWebpackPlugin([{
from: path.resolve(__dirname, '../static/newProduct'), // from: path.resolve(__dirname, '../static/newProduct'),
to: config.build.newProductRoot, // to: config.build.newProductRoot,
ignore: ['.*'] // ignore: ['.*']
}]), // }]),
], ],
}) })

4
config/index.js

@ -17,7 +17,7 @@ module.exports = {
// 静态资源目录 // 静态资源目录
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
newProductRoot: path.resolve(__dirname, '../dist/newProduct'), // newProductRoot: path.resolve(__dirname, '../dist/newProduct'),
// 代理服务器基础配置 可在 process.env 中修改 // 代理服务器基础配置 可在 process.env 中修改
proxyTable: { proxyTable: {
@ -72,7 +72,7 @@ module.exports = {
// bundle的生成地址 // bundle的生成地址
assetsRoot: path.resolve(__dirname, '../dist'), assetsRoot: path.resolve(__dirname, '../dist'),
newProductRoot: path.resolve(__dirname, '../dist/newProduct'), // newProductRoot: path.resolve(__dirname, '../dist/newProduct'),
// bundle生成的文件 // bundle生成的文件
index: path.resolve(__dirname, '../dist/index.html'), index: path.resolve(__dirname, '../dist/index.html'),

Loading…
Cancel
Save