npm install webpack-dev-server -dev-install Now, you can either update your package.json file to use webpack or. I have tried using http-server -p 4000 while running webpack -watch, but when I update my file, it would not update when I refresh the localhost:4000. To run this using the webpack-dev-server, first we will install webpack-dev-server. I'm just not too good at Express (once to meet him.), I use the LAN OpenServer under Windows, so I'm just in phpstrom in fact start the Assembly using npm run start and config webpage configured to listen to changes in JS and CSS files and peremabiri project. However, I can't think of a good way to implement it. Ie first set up the server on the Express, and then Google how to set webpac. In short, the ideal environment would be to run it on a localhost server, and whenever I make any edit on my files, webpack would recompile and when I refresh, it would update. My ideal env would be like when I run create-react-app -> npm run start ( react-scripts start). I refresh Chrome, and voila! It is changed:Īll is great but I wish to run it on server instead. The way I view what it looks like, is that I am currently running index.html on google chrome (without running any server) - I also have my webpack -watch on to compile any changes on files: I am having problem setting up localhost server on my development environment that updates when I make changes. I am following the getting-started JSX part. I am learning metaljs and trying to setup development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |