Ionic2代码更改不会反映在live app中
我已经使用Ionic CLI设置了一个新的Ionic2项目。我使用爱奥尼亚服务命令浏览网站。每当我对html模板进行更改时,我都可以看到linting和building过程开始,但html或typescript更改不会反映在浏览器中。我尝试过几件事,比如清除浏览器缓存,使用Chrome Incognito,甚至终止ionic会话,以及重新发出ionic serve命令。几个小时后,我才看到浏览器中反映的代码更改。这是非常令人沮丧的…请建议解决方法。我使用的是Windows 10,节点版本6.9.4,离子版2.2.1 Package.json是:Ionic2代码更改不会反映在live app中,ionic2,Ionic2,我已经使用Ionic CLI设置了一个新的Ionic2项目。我使用爱奥尼亚服务命令浏览网站。每当我对html模板进行更改时,我都可以看到linting和building过程开始,但html或typescript更改不会反映在浏览器中。我尝试过几件事,比如清除浏览器缓存,使用Chrome Incognito,甚至终止ionic会话,以及重新发出ionic serve命令。几个小时后,我才看到浏览器中反映的代码更改。这是非常令人沮丧的…请建议解决方法。我使用的是Windows 10,节点版本6.9.
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"angularfire2": "^2.0.0-beta.7",
"firebase": "^3.6.9",
"ionic-angular": "2.0.1",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "^1.0.1",
"@types/request": "0.0.39",
"typescript": "2.0.9"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "webapp: An Ionic project"
}
你能添加package.json吗?我已经在我的问题中添加了package.json。Thanksry设置应用程序脚本版本1.1.3@user2202866我也有同样的问题。你解决了吗?你找到解决方法了吗?你能添加package.json吗?我已经在我的问题中添加了package.json。Thanksry设置应用程序脚本版本1.1.3@user2202866我也有同样的问题。你解决了吗?你找到解决方法了吗?