Open vincenttaglia opened 3 years ago
hey @vincenttaglia to start off, similar to the other one, can we add an example and test?
hey @vincenttaglia did you still want to move forward on this? if so can you add an example and tests like your last one?
With this PR I have implemented support for nested partials.
I got this to work by passing child partial information in the options object, and iterating through all nested partials, before injecting the partial in the top level template.
This is an example plugin configuration for
webpack.config.js
:And you can keep nesting more partials in the options of other nested partials!