Closed lancefisher closed 9 years ago
This is a minor fix that I noticed while using react-hot-boilerplate as a guide to enable hot loading on my own project.
Thanks for a great example!
Running webpack at the command line generates ./bundle.js. However, index.html expects /scripts/bundle.js (where the dev server serves it).
Append '/scripts/' to output.path in webpack.config. This will create a scripts directory and place bundle.js in it when running webpack at the CLI.
webpack
Good catch. Thanks!
This is a minor fix that I noticed while using react-hot-boilerplate as a guide to enable hot loading on my own project.
Thanks for a great example!
Problem
Running webpack at the command line generates ./bundle.js. However, index.html expects /scripts/bundle.js (where the dev server serves it).
Fix
Append '/scripts/' to output.path in webpack.config. This will create a scripts directory and place bundle.js in it when running
webpack
at the CLI.