jaketrent / html-webpack-template

a better default template for html-webpack-plugin
MIT License
830 stars 139 forks source link

Allow the app mount element to be configurable. #29

Closed jpickwell closed 8 years ago

jpickwell commented 8 years ago

This is based off of #28.

The appMountElement option can be set to the name of an element; e.g. 'article'. This element is used for all appMountIds. This could be expanded in the future to allow the element to be set per id, but that would be best implemented with breaking changes.

The appMountIds option, and thus the appMountId option, has been modified to be similar to the links and scripts options.

This enhancement was inspired by #24.

jpickwell commented 8 years ago

I will split everything up. I made this pull request before I saw your comment on #28.

jaketrent commented 8 years ago

Closing in favor of separate merges.