-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling bundling for specific script #2080
Labels
Comments
Closed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
β Question
Is there a way to disable parcel (especially bundling) on a script tag?
π¦ Context
My plugin parcel-plugin-sw-cache runs Workbox to create a service worker for (pre)caching. For precaching to work, Workbox runs after bundling has finished to create a list of files and hashes. This means however, that the
service-worker.js
file doesn't exist during the bundling and parcel throwsENOENT: no such file or directory
while parsing thenavigator.serviceWorker.register
call.Before 1.10, this worked fine, because script tags weren't parsed.
Alternatively, how can I make my plugin work, without hack a like this?
π» Code Sample
https:/mischnic/parcel-plugin-sw-cache/blob/2df57ec/example/src/index.html
π Your Environment
The text was updated successfully, but these errors were encountered: