mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-04 20:30:40 +00:00
fix: workaround an issue in webpack-remove-empty-scripts (#500)
This commit is contained in:
parent
8725a98d22
commit
1381de2fde
18
package-lock.json
generated
18
package-lock.json
generated
@ -39,7 +39,7 @@
|
|||||||
"webpack-cli": "4.10.0",
|
"webpack-cli": "4.10.0",
|
||||||
"webpack-favicons": "^1.3.8",
|
"webpack-favicons": "^1.3.8",
|
||||||
"webpack-manifest-plugin": "5.0.0",
|
"webpack-manifest-plugin": "5.0.0",
|
||||||
"webpack-remove-empty-scripts": "0.8.1"
|
"webpack-remove-empty-scripts": "0.8.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.15 <=18"
|
"node": ">=16.15 <=18"
|
||||||
@ -11294,12 +11294,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/webpack-remove-empty-scripts": {
|
"node_modules/webpack-remove-empty-scripts": {
|
||||||
"version": "0.8.1",
|
"version": "0.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.4.tgz",
|
||||||
"integrity": "sha512-61hc2jfZOI6SAFDpIAQ910VFWc7ic+JWyjU0H/5A+1poKD9nOQRHnXaaixwsxXWI0+N1HUvmiREC3h9Dqn9xWw==",
|
"integrity": "sha512-X9TVQ5mkl00aW33v1EAe4SZVzvz7EEpbXbNNDSUnY6IeePbrnODl7r3HS9Cy2Dq2pvY7FGfqWsL0GO1q2Vq6KA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansis": "^1.3.6"
|
"ansis": "1.4.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.14"
|
"node": ">=12.14"
|
||||||
@ -20406,12 +20406,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webpack-remove-empty-scripts": {
|
"webpack-remove-empty-scripts": {
|
||||||
"version": "0.8.1",
|
"version": "0.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/webpack-remove-empty-scripts/-/webpack-remove-empty-scripts-0.8.4.tgz",
|
||||||
"integrity": "sha512-61hc2jfZOI6SAFDpIAQ910VFWc7ic+JWyjU0H/5A+1poKD9nOQRHnXaaixwsxXWI0+N1HUvmiREC3h9Dqn9xWw==",
|
"integrity": "sha512-X9TVQ5mkl00aW33v1EAe4SZVzvz7EEpbXbNNDSUnY6IeePbrnODl7r3HS9Cy2Dq2pvY7FGfqWsL0GO1q2Vq6KA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansis": "^1.3.6"
|
"ansis": "1.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webpack-sources": {
|
"webpack-sources": {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
"webpack-cli": "4.10.0",
|
"webpack-cli": "4.10.0",
|
||||||
"webpack-favicons": "^1.3.8",
|
"webpack-favicons": "^1.3.8",
|
||||||
"webpack-manifest-plugin": "5.0.0",
|
"webpack-manifest-plugin": "5.0.0",
|
||||||
"webpack-remove-empty-scripts": "0.8.1"
|
"webpack-remove-empty-scripts": "0.8.4"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"colors": "1.4.0"
|
"colors": "1.4.0"
|
||||||
|
@ -82,7 +82,11 @@ var config = {
|
|||||||
let manifest = {}
|
let manifest = {}
|
||||||
|
|
||||||
files.forEach(function (element, index) {
|
files.forEach(function (element, index) {
|
||||||
|
if (element.name.endsWith("VERSION")) return
|
||||||
if (element.name.endsWith(".svg")) 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, {
|
Object.assign(manifest, {
|
||||||
[element.name]: { src: element.path }
|
[element.name]: { src: element.path }
|
||||||
|
Loading…
Reference in New Issue
Block a user