markdalgleish / react-to-html-webpack-plugin

Webpack plugin that renders React components to HTML files
MIT License
168 stars 14 forks source link

Allow hashed JS assets to be resolved in the HTML template #4

Closed jonathaningram closed 9 years ago

jonathaningram commented 9 years ago

Here is the gist that I originally sent to @markdalgleish:

These changes work successfully for me in resolving the correctly hashed script name for JS files in index.html. https://gist.github.com/jonathaningram/d1aaeb8b9314094e0d21

Note: this PR only addresses getting the right filename for the source JS file. It doesn't address sending assets like CSS to the template.

markdalgleish commented 9 years ago

Thanks for the tidy PR! :smile: