Добавлена чистка output перед сборкой

This commit is contained in:
Book Pauk
2022-10-01 13:39:25 +07:00
parent 316aedcfd1
commit 0a53648279
3 changed files with 5 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ module.exports = {
entry: [`${clientDir}/main.js`],
output: {
publicPath: '/app/',
clean: true
},
module: {

View File

@@ -17,7 +17,8 @@ module.exports = merge(baseWpConfig, {
devtool: 'inline-source-map',
output: {
path: `${publicDir}/app`,
filename: 'bundle.js'
filename: 'bundle.js',
clean: true
},
module: {

View File

@@ -16,7 +16,8 @@ module.exports = merge(baseWpConfig, {
mode: 'production',
output: {
path: `${publicDir}/app_new`,
filename: 'bundle.[contenthash].js'
filename: 'bundle.[contenthash].js',
clean: true
},
module: {
rules: [