Replies: 1 comment 1 reply
-
Either you use readFileSync, or add a .parcelrc and then use {
"extends": "@parcel/config-default",
"transformers": {
"bundle-text-raw:*": ["@parcel/transformer-inline-string"]
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to import HTML template as string. But the template does not fit w3c as well as styles in it does not fit the correct format as there are placeholders for bindings.
when I try:
while the template looks like:
I get
Its clear that this is not vaild and parsable HTML/CSS code but its processed later.
Is there a way how to import whatever as string without running transformations over it?
Solution with fs mentioned doc does not work for me as I am bundling web app.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions