Is there a way to disable code splitting or set max bundles to 1? #7188
Replies: 2 comments 9 replies
-
Wish I knew too. I'd like my webextension build to keep outputting just 1 html+js+css file for its components. The css and js are often split into multiple files for some reason. I've tried to suppress it as outlined in the docs but this config seems to have no effect. All these hashed (which I could suppress with a namer if files weren't being split) and split files are making debugging and packaging messy, to be honest. Add to this that you can't redundantly make your css and js files entrypoints (so they keep their hashless names) if your html also has to import them, and parcel ends up dictating project file structure and cli complexity. |
Beta Was this translation helpful? Give feedback.
-
Parcel appears to have added this ability via plugin, but it's not documented anywhere. Check: |
Beta Was this translation helpful? Give feedback.
-
If I have a scenario where I need to deliver static code to another external team, and they are enforcing a requirement of only having a single js and css file, is there an easy way to enable this as part of Parcel's configuration?
Beta Was this translation helpful? Give feedback.
All reactions