Html-webpack-plugin Is Only Injecting Js In Root Route?
Using the Html-webpack-plugin if I go to the root directory localhost:8080 it injects the javascript as expected If I go localhost:8080/test the html renders but no js gets injec
Solution 1:
Turns out I was running webpack-dev-server and that does not inject to the file system. I added this snippet to my webpack and problem solved
"scripts": {
"start": "npm run build",
"build": "webpack -p && webpack-dev-server"
},
Post a Comment for "Html-webpack-plugin Is Only Injecting Js In Root Route?"