I want to use Webpack for bundling my email templates.
I pretty much have a .html file for each of the templates, which references a common .scss file for styles.
I want the styles to be inlined in the HTML
Is this possible?
If you want to use webpack, seems to me this is a job for inline-style-loader
: https://www.npmjs.com/package/inline-style-loader
There's a demo for how to integrate this into your webpack.config.js
file here: https://github.com/jbsouvestre/inline-style-loader/tree/master/demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With