@pumpn/parcel-optimizer-prepend
v0.4.0
Published
parcel optimizer to prepend text to the bundle file
Downloads
4
Maintainers
Readme
parcel-optimizer-prepend
A parcel plugin to add text at the start of your bundle file.
Add this plugin to the optimizers in your .parcelrc file:
{ "extends": "@parcel/config-default", "optimizers": { "*.js": ["...", "@pumpn/parcel-optimizer-prepend"] } }
Use "..." as the first entry to not overwrite the default optimizers.
Add a
parcel-optimizer-prepend
option and the text you wish to prepend to your package.json:{ "parcel-optimizer-prepend": "/* this will be at the top of the file */\n" }
You are responsible for linebreaks, this plugin won't add them for you.
Stay safe!