diff --git a/frontend-bundler/package.json b/frontend-bundler/package.json index 4bc1b9c4e..62a0b85e1 100644 --- a/frontend-bundler/package.json +++ b/frontend-bundler/package.json @@ -6,8 +6,9 @@ "version": "1.0.0", "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": "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", + "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", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "",