简体   繁体   中英

How can I reload the page when I changed one of my required modules in Webpack?

For example, I have "A" folder in my root directory and I am requiring this "A" from another folder, let say "B". Entering "npm install" command in "B". "Folder A" is coming to B's node_modules,as expected. I want also reload my webpack,when ı changed "A" folder files under the root, not B's node_modules's "A". I think I need some auto install plugin or something.

Please check if nodemon helps you. If you run your app using nodemon then any changes in the project will restart the node application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM