I updated my gulp file to reflect the changes found in the ionic conference app, and have found that ionic serve
doesn’t seem to push the latest html on template changes. All TS/JS works perfectly well, just the HTML.
Just for the sake of clarity, here’s my package.json
:
{
"name": "private",
"description": "private",
"author": "private",
"homepage": "private",
"private": true,
"scripts": {
"build": "ionic-app-scripts build",
"clean": "ionic-app-scripts clean",
"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-native/statusbar": "3.0.0-alpha.1",
"@ionic/cloud-angular": "^0.11.0",
"@ionic/storage": "1.1.9",
"foundation-sites": "^6.3.1",
"ionic-angular": "2.1.0",
"ionicons": "3.0.0",
"jquery": "^3.1.1",
"ng2-validators": "^1.7.0",
"rxjs": "^5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"typescript": "2.0.9",
"gulp": "^3.9.1",
"gulp-pug": "^3.2.0",
"gulp-watch": "^4.3.11",
"gulp-concat": "^2.6.1",
"gulp-flatten": "^0.3.1"
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [
"ios",
{
"platform": "ios",
"version": "",
"locator": "ios"
}
],
"config": {
"ionic_watch": "./config/watch.config.js"
}
}