Skip to content

Commit

Permalink
fix: workaround an issue in webpack-remove-empty-scripts (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Sep 12, 2022
1 parent 8725a98 commit 1381de2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 1381de2

Please sign in to comment.