Node.js live reload不适用于live server@0.9.2
对于我的web应用程序,我使用的是“live server”:“^0.9.2”,这是程序包json文件Node.js live reload不适用于live server@0.9.2,node.js,npm-live-server,Node.js,Npm Live Server,对于我的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" }, "dependenc
{
"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”时,实时服务器启动,网页启动@
现在,每当我为html/css更改内容时,都不会发生更改检测,浏览器内容也不会刷新
原因可能是什么?如何解决。谢谢
根据文档,如果扩展能够找到默认在web浏览器上提供的html文件,那么它的工作效果最好。它可能会检测到您编辑的本地文件中的更改,但是否将其呈现给浏览器取决于您是否正在编辑html文件。必须有一个黑客的工作,只是还没有找到一个