【发布时间】:2017-07-18 06:44:31
【问题描述】:
我已经安装了我需要的所有东西(webpack、webpack-server),配置了我的 webpack.config.js 和 package.json,但 localhost:8080 仍然无法安全呈现。它也不会在安全的 localhost:8080/webpack-dev-server/index.html 上呈现。在手动重新加载时,它会完美呈现。
package.json:
npm run dev 成功执行,但在对父文件夹中的 index.html 进行一些更改后,我还必须手动重新加载页面。另外,当我更改我的 .js 文件时,我总是必须在我的 cmd 中手动运行 webpack。如果我是正确的,热加载也应该解决这个问题。
我还要补充一点,当我运行 CTRL+s 时,应用程序正在重新编译,但实际上并没有重新编译。
【问题讨论】:
标签: javascript node.js webpack atom-editor hot-module-replacement