简体   繁体   English

在Webpack中更改所需模块之一后,如何重新加载页面?

[英]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". 例如,我的根目录中有“ A”文件夹,而我需要另一个文件夹中的“ A”,比如说“ B”。 Entering "npm install" command in "B". 在“ B”中输入“ npm install”命令。 "Folder A" is coming to B's node_modules,as expected. 正如预期的那样,“文件夹A”即将到达B的node_modules。 I want also reload my webpack,when ı changed "A" folder files under the root, not B's node_modules's "A". 当我更改根目录下的“ A”文件夹文件而不是B的node_modules的“ A”目录时,我也想重新加载我的webpack。 I think I need some auto install plugin or something. 我想我需要一些自动安装插件或其他东西。

Please check if nodemon helps you. 请检查nodemon是否可以帮助您。 If you run your app using nodemon then any changes in the project will restart the node application. 如果使用nodemon运行应用程序,则项目中的任何更改都将重新启动节点应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在package.json中更改了一个必需的模块时,如何重新加载webpack? - How can I reload the webpack when I changed one of my required modules in package.json? 我的{{link-to}}帮助者之一正在触发页面重新加载。 我如何找出导致该页面完全重新加载的原因? - One of my `{{link-to}}` helpers is triggering a page reload. How can i figure out what is causing that page to reload completely? 如何从第一页的按钮重新加载第二页? - How can I reload page two from button in page one? 如何使用webpack将单独所需的lodash模块强制转换为供应商块? - How can I force individually required lodash modules into a vendor chunk with webpack? 打开控制台时如何不重新加载页面? - How to not reload my page when I open up my console? 倒数结束时,如何使计时器重新载入页面? - how can i make my timer to reload to page when the countdown ends? 如何在不重新加载页面的情况下向我的 url 添加参数? - How can I add a parameter to my url, without reload the page? 如何使我的页面可以关闭或重新加载,但当我再次打开页面时内容不会消失? - How do I make it so my page can close or reload but the content wont disappear when i open the page again? 如何在angularjs的一页中添加多个模块 - how can i add multiple modules in one page in angularjs 我如何对data-dismiss =“ modal”有两种影响;一种是重新加载父页面,另一种是不加载 - How i can have two effects for my data-dismiss=“modal” ;one to reload the parent page , while the other without loading
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM