mirkonasato / ionic2-webpack2-starter

Ionic 2 starter project based on Webpack 2
MIT License
25 stars 8 forks source link

Support automatic refresh when running as a mobile app #3

Closed mirkonasato closed 7 years ago

mirkonasato commented 7 years ago

Similar to ionic run/emulate --livereload.

mirkonasato commented 7 years ago

Manual steps working with the Android emulator (for my own reference - will automate/simplify later).

In webpack.config.js add to the devServer section:

In package.json:

In cordova/config.xml:

Start the dev server with npm run serve:cordova and deploy the app with cordova run android --emulator.