sagold / handlebars-webpack-plugin

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

Problem with output #47

Closed dgateles closed 5 years ago

dgateles commented 5 years ago

If i write output: path.join(process.cwd(), "build", "[name].html"),

My output is:

build/index.html; build/page1.html; build/page2.html

Also, if i ommit this line, my output is:

src/index; src/pages/page1; src/pages/page2

I would like to output like that:

build/index.html; build/pages/page1.html; build/pages/page2.html

how to do that?

sagold commented 5 years ago

Hi.

Did you try something like https://github.com/gregnb/filemanager-webpack-plugin to setup the file structure you need? handlebars-webpack-plugin does currently not support this.

sagold commented 5 years ago

Ok, thanks to @TheReincarnator, with version 1.6 there is an option getTargetFilepath. Here you can specify you custom filepath generator for the html-results. This might help your issue.

Cheers.