fix: workaround an issue in webpack-remove-empty-scripts (#500)

This commit is contained in:
Robert Kaussow 2022-09-12 10:15:34 +02:00 committed by GitHub
parent 8725a98d22
commit 1381de2fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 10 deletions

18
package-lock.json generated
View File

@ -39,7 +39,7 @@
"webpack-cli": "4.10.0",
"webpack-favicons": "^1.3.8",
"webpack-manifest-plugin": "5.0.0",
"webpack-remove-empty-scripts": "0.8.1"
"webpack-remove-empty-scripts": "0.8.4"
},
"engines": {
"node": ">=16.15 <=18"
@ -11294,12 +11294,12 @@
}
},
"node_modules/webpack-remove-empty-scripts": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.1.tgz",
"integrity": "sha512-61hc2jfZOI6SAFDpIAQ910VFWc7ic+JWyjU0H/5A+1poKD9nOQRHnXaaixwsxXWI0+N1HUvmiREC3h9Dqn9xWw==",
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.4.tgz",
"integrity": "sha512-X9TVQ5mkl00aW33v1EAe4SZVzvz7EEpbXbNNDSUnY6IeePbrnODl7r3HS9Cy2Dq2pvY7FGfqWsL0GO1q2Vq6KA==",
"dev": true,
"dependencies": {
"ansis": "^1.3.6"
"ansis": "1.4.0"
},
"engines": {
"node": ">=12.14"
@ -20406,12 +20406,12 @@
}
},
"webpack-remove-empty-scripts": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.1.tgz",
"integrity": "sha512-61hc2jfZOI6SAFDpIAQ910VFWc7ic+JWyjU0H/5A+1poKD9nOQRHnXaaixwsxXWI0+N1HUvmiREC3h9Dqn9xWw==",
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.4.tgz",
"integrity": "sha512-X9TVQ5mkl00aW33v1EAe4SZVzvz7EEpbXbNNDSUnY6IeePbrnODl7r3HS9Cy2Dq2pvY7FGfqWsL0GO1q2Vq6KA==",
"dev": true,
"requires": {
"ansis": "^1.3.6"
"ansis": "1.4.0"
}
},
"webpack-sources": {

View File

@ -61,7 +61,7 @@
"webpack-cli": "4.10.0",
"webpack-favicons": "^1.3.8",
"webpack-manifest-plugin": "5.0.0",
"webpack-remove-empty-scripts": "0.8.1"
"webpack-remove-empty-scripts": "0.8.4"
},
"overrides": {
"colors": "1.4.0"

View File

@ -82,7 +82,11 @@ var config = {
let manifest = {}
files.forEach(function (element, index) {
if (element.name.endsWith("VERSION")) return
if (element.name.endsWith(".svg")) return
if (element.name.startsWith("fonts/")) return
if (element.name.startsWith("/favicon")) return
if (element.name == "css.js") return
Object.assign(manifest, {
[element.name]: { src: element.path }