You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This poses some unique challenges but is theoretically possible.
We could add a grunt serve:<platform> task that builds the platform's Cordova assets but also spins up a connect server and injects the livereload snippet.
Some considerations will need to be made to the current workflow since we are using the www/ directory for built assets and then having the cordova:build task work its magic and publish to the correct platform/ directories.
For this to possibly work we would need a separate workflow that would put un-minified assets into the www/ directory, and re-run cordova:build as watched files changed.
There would have to be a new (dynamic) watch task looking at platform specific files.
The text was updated successfully, but these errors were encountered:
diegonetto
changed the title
Consider adding support for platform specific live-reloading
Experiment with adding support for platform specific live-reloading
Mar 22, 2014
diegonetto
changed the title
Experiment with adding support for platform specific live-reloading
Experiment with platform specific live-reloading
Mar 22, 2014
Instead of duplicating functionality (adding tasks that inject scripts which communicate with the livereload server), I propose exploring a build system refactor that would use the ionic-cli under the hood, so that users get the best of both worlds.
This poses some unique challenges but is theoretically possible.
We could add a
grunt serve:<platform>
task that builds the platform's Cordova assets but also spins up aconnect
server and injects the livereload snippet.Some considerations will need to be made to the current workflow since we are using the
www/
directory for built assets and then having thecordova:build
task work its magic and publish to the correctplatform/
directories.For this to possibly work we would need a separate workflow that would put un-minified assets into the
www/
directory, and re-runcordova:build
as watched files changed.There would have to be a new (dynamic) watch task looking at platform specific files.
The text was updated successfully, but these errors were encountered: