Answer the question
In order to leave comments, you need to log in
Why doesn't webpack update the page with handlebars changes?
Good afternoon. I made myself an assembly of pages, using handlebars as a template engine.
In webpacke, I use the handlebars-webpack-plugin plugin , and in the plugins section, I wrote the plugin initialization:
new HandlebarsPlugin({
entry: path.resolve(__dirname, "app", "html", "pages", "*.hbs"),
output: path.resolve(__dirname, "dist", "[name].html"),
partials: [
path.resolve(__dirname, "app", "html", "components", "*.hbs"),
path.resolve(__dirname, "app", "html", "components", "*", "*.hbs")
]
}),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question