-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
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
Addition of IMG tag processing #23
Comments
Hi yerzhant. You can require images from your html if you use the loader-version of this plugin, found here: https://github.com/sueddeutsche/handlebars-render-loader. Within your loader chain, prepend the html loader to the handlebars-render-loader, which will ensure that images are put into your build. Your configuration then might look something along theese lines: {
test: [
path.join(__dirname, "app", "index.hbs")
],
use: [
{
loader: "file-loader",
options: {
name: "[name].html"
}
},
{
loader: "extract-loader"
},
{
loader: "html-loader",
options: LOADER_CONFIG.html
},
{
loader: "handlebars-render-loader",
options: LOADER_CONFIG.handlebarsRender
}
]
} |
Hi Sascha, Thank you for the reply. I've hooked to the onBeforeSave like this:
Appreciate you for your solution. |
Could you please add processing of img tags in templates, so that they appear in the dist and be watchable by webpack dev server.
Thanks in advance.
The text was updated successfully, but these errors were encountered: