We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm submitting a feature request
{Function}
component.html
<div>${ _.hello }<div>
webpack.config.js
{ loader: 'html-loader', options: { template: true } }
component.js
import template from './component.html' const component = template({ hello: 'Hello World!' }) // <div>Hello World!</div>
The text was updated successfully, but these errors were encountered:
webpack-defaults
This feature should be very convenient, but it hasn't been merge to the release version after half year
Sorry, something went wrong.
https://github.com/webpack-contrib/html-loader/releases/tag/v1.0.0-alpha.0
Alternatively, I created a loader that might do something close to what you want to achieve: https://github.com/denis-migdal/prehtml-loader
Else, by disabling interpolation, you could also use template-string-loader: https://github.com/bradbenvenuti/template-string-loader
michael-ciniawsky
No branches or pull requests
I'm submitting a feature request
Template (
{Function}
)component.html
webpack.config.js
component.js
The text was updated successfully, but these errors were encountered: