colbyfayock / html-webpack-partials-plugin

🛠 Easy HTML partials for Webpack without a custom index!
MIT License
68 stars 20 forks source link

Added String[] type for template_filename + tests #13

Closed superelement closed 4 years ago

superelement commented 4 years ago

Added 'string array' type for 'template_filename' option, so you can easily pass an array of pages for a single partial.

colbyfayock commented 4 years ago

@superelement this looks great. thanks for the thorough PR with the tests and such 👏

just published 0.5.4 🎉

superelement commented 4 years ago

Happy to help. Thanks for the quick response.

jamesonhill commented 4 years ago

Should this work for subdirectory file names? I'm having issues where it seems the partial is not being injected when I do template_filename: ['/someSubDir/index.html']

Edit: when it's only specified as a single string, it works as expected with subdirectories.

jamesonhill commented 4 years ago

Ha, nevermind I forgot to update the package. Disregard.