Skip to content

Commit

Permalink
parcel bundle: fix index.html prefetch bundle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Dec 4, 2024
1 parent 84b9f1f commit 22643aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"description": "",
"scripts": {
"clean": "rm -rf ../frontend-dist ../frontend-dist-static",
"start": "cd ../frontend && parcel --dist-dir ../frontend-dist --config ../frontend-bundler/.parcelrc editor.html index.html error.jl.html",
"build": "npm run clean && cd ../frontend && parcel build --no-source-maps --public-url . --dist-dir ../frontend-dist --config ../frontend-bundler/.parcelrc editor.html index.html error.jl.html && node ../frontend-bundler/add_sri.js ../frontend-dist/editor.html",
"start": "cd ../frontend && parcel --dist-dir ../frontend-dist --config ../frontend-bundler/.parcelrc index.html editor.html error.jl.html",
"note about order": "super weird but index.html has to come before editor.html or the prefetch in index.html will not bundle correctly.",
"build": "npm run clean && cd ../frontend && parcel build --no-source-maps --public-url . --dist-dir ../frontend-dist --config ../frontend-bundler/.parcelrc index.html editor.html error.jl.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
Expand Down

0 comments on commit 22643aa

Please sign in to comment.