sagold / handlebars-webpack-plugin

Renders your html-template at build time
162 stars 45 forks source link

Add possibility to pass options #99

Open Falke-Design opened 2 years ago

Falke-Design commented 2 years ago
new HandlebarsPlugin({
            entry: path.join(process.cwd(), "html", "*.hbs"),
            output: path.join(process.cwd(), "dist", "[name].html"),
            data: path.join(process.cwd(), "data", "data.json"),
            options: {
                        strict: true
            }
})

https://handlebarsjs.com/api-reference/compilation.html#handlebars-compile-template-options