Open JohnBlazek opened 6 years ago
Also wondering if this is possible? was hoping to replicate similiar functionality to mustache starter kit. I have kind of replicated the behaviour using mutliple instances of the plugin but the partials get rendered multiple times. Ideally just want to run one instance with multiple json files for different templates and pages
Hi.
I did not want this feature being a part of the plugin, since the json input by file or object is a clean interface for the data. Anything like merging, downloading or other stuff could easily be done before the webpack compilation. Now, since a PR is proposed, i will consider maintaining this feature.
As of now, you can follow the example to merge json-files or use the helper function within this repository: https://github.com/sagold/handlebars-webpack-plugin#merging-input-data
I'd like to use more than one json file as a data source in my project. Currently, It seems I can only use 1. Is this possible?
I've tried globbing the data:
and tried adding data as an array:
Neither is returning what i would expect. Globbing returns an error:
Adding data as array returns no data in my template.
Any help here is appreciated!