webpack clean is unpredictable

This commit is contained in:
Will Scullin 2021-07-05 09:53:33 -07:00
parent 30b8078c07
commit 8fe0bcf864
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
3 changed files with 3 additions and 2 deletions

1
package-lock.json generated
View File

@ -30,6 +30,7 @@
"jest-image-snapshot": "^4.5.0",
"node-forge": "^0.10.0",
"raw-loader": "^4.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.0",
"ts-loader": "^8.0.15",
"typescript": "^4.1.3",

View File

@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Apple II Emulator in JavaScript",
"scripts": {
"build": "webpack --mode=production",
"build": "rimraf dist/* && webpack --mode=production",
"dev": "webpack serve --mode=development",
"index": "bin/index > json/disks/index.js",
"lint": "eslint '**/*.js' '**/*.ts'",
@ -42,6 +42,7 @@
"jest-image-snapshot": "^4.5.0",
"node-forge": "^0.10.0",
"raw-loader": "^4.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.0",
"ts-loader": "^8.0.15",
"typescript": "^4.1.3",

View File

@ -76,7 +76,6 @@ const workerConfig = merge(baseConfig,
},
output: {
globalObject: 'globalThis',
clean: true,
},
},
);