对于我的 Web 应用程序,我使用的是“live-server”:“^0.9.2”,这是包 json 文件,
{
"name": "demoapp",
"version": "1.0.0",
"description": "This project contains the samples of the book",
"scripts": {
"live": "live-server",
"start": "npm run live"
},
"dependencies": {
"angular": "^1.5.0",
"angular-messages": "^1.5.0",
"angular-route": "^1.5.0",
"bootstrap": "^3.3.6",
"jquery": "^2.2.0"
},
"devDependencies": {
"live-server": "^0.9.2"
}
}
当我执行命令“npm start”时,实时服务器启动并且网页启动@ http://127.0.0.1:8080/
现在,每当我更改 html/css 的内容时,不会发生更改检测,也不会刷新浏览器内容。
可能是什么原因?如何解决它。谢谢!!!