I have inherited a very old ionic app with seemingly a different folder structure to the normal.
I have templates stored in
/www/templates/***.html
and js files stored in
/www/js/controllers
/www/js/services
/www/js/app.js
When I run ionic serve, it all runs fine. Any changes I make to html templates are reflected.
However, any changes to files in the js directory are completely ignored. Saving them causes the browser to refresh, but they are not being used. Instead, the app is using /www/dist/app.js which compiles all the files (I can make changes in this file, and see them reflected).
I appreciate that this is a very old app, but is there a solution to make my app look at the latest js files? Here’s my ionic info output
cli packages: (C:\Users\<user>\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 7.1.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic1 1.1.0
System:
Android SDK Tools : 26.1.1
Node : v6.11.4
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : F:\Android\sdk
Misc:
backend : pro