diff --git a/package.json b/package.json index 9eff4ef6944508271806315fcdcbea1011758f2c..394cdb30e28af38962716fda271377bee932fa84 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "public/index.html", "scripts": { "postinstall": "node build.js", - "build":"rollup public/worker.js --format iife --file public/generated.worker.js", + "build":"rollup public/worker.js --format iife --file public/generated.worker.js && rollup public/main.js --format iife --file public/generated.main.js", "test": "echo open public/test.html in your browser" }, "repository": { diff --git a/public/index.html b/public/index.html index f28218bde5c9f9b866c2737635e01f731159684e..d551f456b8ffde3a01f7b20217c7602301499ab1 100644 --- a/public/index.html +++ b/public/index.html @@ -86,6 +86,6 @@ space::[ _-.]{0,1} </style> </a> </footer> -<script type="module" src="main.js"></script> +<script type="module" src="generated.main.js"></script> </body> </html>