|
|
@ -49,7 +49,7 @@ NB: The command is **npx** and it means run the webpack program that's in the no
|
|
|
|
|
|
|
|
|
|
|
|
By default webpack uses the webpack.config.js file to figure out what the "entry" point of the code is (src/hello.js), and where to put the output.
|
|
|
|
By default webpack uses the webpack.config.js file to figure out what the "entry" point of the code is (src/hello.js), and where to put the output.
|
|
|
|
|
|
|
|
|
|
|
|
Look at hello.html (which uses dist/bundle.js).
|
|
|
|
Open [hello.html](hello.html) with your browser (NB: it uses the *hopefully* correctly generated output file dist/bundle.js).
|
|
|
|
|
|
|
|
|
|
|
|
**Each time you change src/hello.js you need to run npx webpack to rebundle/rebuild the output.**
|
|
|
|
**Each time you change src/hello.js you need to run npx webpack to rebundle/rebuild the output.**
|
|
|
|
|
|
|
|
|
|
|
|