Skip to content

Commit

Permalink
Renamed webpack handlebar specific config
Browse files Browse the repository at this point in the history
  • Loading branch information
LordKa0S committed Jul 18, 2021
1 parent f140eba commit 125e5b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js → webpack.hbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ const webpackConfig = {

new HandlebarsPlugin({
// path to hbs entry file(s). Also supports nested directories if write path.join(process.cwd(), "app", "src", "**", "*.hbs"),
entry: path.join(process.cwd(), "*.hbs"),
entry: path.join(process.cwd(), "handlebars", "*.hbs"),
// output path and filename(s). This should lie within the webpacks output-folder
// if ommited, the input filepath stripped of its extension will be used
output: path.join(process.cwd(), "[name].html"),
output: path.join(process.cwd(), "html", "[name].html"),
// you can also add a [path] variable, which will emit the files with their relative path, like
// output: path.join(process.cwd(), "build", [path], "[name].html"),

// globbed path to partials, where folder/filename is unique
partials: [
path.join(process.cwd(), "partials", "*.hbs")
path.join(process.cwd(), "handlebars", "partials", "**", "*.hbs")
],
})
]
Expand Down

0 comments on commit 125e5b9

Please sign in to comment.