Parcel v2 transformer plugin for EJS.
npm i -D parcel-transformer-ejs
{
"extends": ["@parcel/config-default"],
"transformers": {
"*.ejs": ["parcel-transformer-ejs"]
}
}
Reference Parcel plugin configuration
You can add custom options for ejs templating engine using a .ejsrc
, .ejsrc.json
, .ejsrc.js
or ejs.config.js
file.
For example, you can set local variables using .ejsrc
.
{
"locals": {
"foo": "bar"
}
}
For more information on customization options, see EJS Options Documentation
MIT