From 22643aac0e12db4da28c6271574ce33bec2a70f2 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 4 Dec 2024 14:48:38 +0100 Subject: [PATCH] parcel bundle: fix index.html prefetch bundle issue --- frontend-bundler/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend-bundler/package.json b/frontend-bundler/package.json index 62a0b85e1..446855dac 100644 --- a/frontend-bundler/package.json +++ b/frontend-bundler/package.json @@ -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": "",