Closed maratfakhreev closed 4 years ago
@sagold ping
@sagold have you already watched this pr?
Hi maratfakhreev.
I see two issues with this pull request
nested-partials
which conflicts with the current develop branch. Could you adjust it to the changes of the latest commit?By the way, have you seen the getTargetFilePath
is configurable, which may be used to modify the filepath within the webpack config https://github.com/sagold/handlebars-webpack-plugin#target-filepaths. Could this be used to solve your issue?
As far as i understand there are currently two problems with the plugin
a. partials cannot keep their directory structure b. partials with the same name in different folders overwrite each other.
Is this correct?
Hi maratfakhreev.
I merged your pr to https://github.com/sagold/handlebars-webpack-plugin/tree/pr/55-nested-partials. Some adjustments
develop
branch[path]
variable to your output-pathgetTargetFilePath
arguments have changed to prevent breaking changes with existing custom-functionsThat is. The Plugin emits files as before. If you add an output path, like
output: path.join(process.cwd(), "build", "[path]", "[name].html")
in the handlebars-webpack-plugin-config your logic is triggered and the files emitted with that relative paths.
Does this still fix your issue?
Related to https://github.com/sagold/handlebars-webpack-plugin/pull/55