parcel-transformer-plaintext
v1.0.1
Published
Parcel v2 plugin that interpolates ENV in HTML files
Downloads
2,839
Maintainers
Readme
Plaintext transformer for Parcel: parcel-transformer-plaintext
Simple plugin for parcel to skip plaintext includes/scripts.
Think of this as a dummy transformer, such as scripts wrapped as type="text/plain" for cookie popups and other similar use cases.
Install
npm install parcel-transformer-plaintext --save-dev
Then add the transformer to your .parcelrc
file like so:
{
"extends": "@parcel/config-default",
"transformers": {
"*.plain": ["parcel-transformer-plaintext", "..."]
}
}