Browse Source

删除newProduct文件

master
liaoxinyu 3 months ago
parent
commit
338ce524b0
  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: ['.*']
}]),
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: ['.*']
// }]),
],
})

10
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: ['.*']
// }]),
],
})

4
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'),

Loading…
Cancel
Save