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

This commit is contained in:
Book Pauk
2022-10-01 13:39:02 +07:00
parent b58d3a1b8b
commit 225230381f
3 changed files with 5 additions and 2 deletions

View File

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

View File

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

View File

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