I'm using Livereload to program and test my app, but every time I try to build an app keeps building the Livereload version, how I can build the non-livereload version? I'm new using Livereload and I'm stuck on that
Related
Am starting a new project on ionic version 3.20
Every time I update a file, the web page isn't refreshing/rebuilding, where it suppose to live reload on "localhost:8100"...
So am stopping ionic and run "ionic serve" again on every update.
Although when i refresh the web page (localhost:8100) the page is reloading till infinity.
I have uninstall cordova and ionic, and still same issue comes.
Any solutions please.?
can you try this :
npm run ionic:serve
it will work
I am switching my Ionic 3 application to use Capacitor. Is the a way to build the application for production using, as we did before, something like --prod?
Short answer:
In your case, run ionic build --prod, then npx cap copy and finally build the app for production in the native IDE.
Detailed answer:
This is how the Capacitor app development workflow works:
Build the web application
Run npx cap copy
Build the app in the native IDE
Building the web application happens completely separated from Capacitor. You could use any framework in the development process. What only matters is that the builded application is located in the www folder. Using Ionic, you can perform a production build by running ionic build --prod.
Afterwards, Capacitor comes to place and copies the web application in the native IDE projects, where you can perform an app build. Some platform-specific extra settings / steps are required to make the app production ready, but this again doesn't have to do with Capacitor.
Just an update:
In Ionic 4:
To do production build try this below command:
npx ng build --aot=true --configuration="production"
and do
npx cap sync
Hope it helped.
My project is very slowly opening with Ionic Deploy.
Starting time (Without Ionic Deploy): 00:09 seconds
Starting time (With Ionic Deploy): 00:24 seconds
ionic cordova build android --prod --release
Why is this happening? Is this happening to you too?
If you are downloading the deploy update during app startup, that can slow down start times. The Ionic Deploy service must check if there's an update, download the update and then unzip it.
The other options would be to 1) download/unzip the update during app usage and then show users the update next time they open the app or 2) write a custom installation scenario. I would suggestion option 1.
https://ionicframework.com/docs/pro/deploy/
I have created my ionic App via Commmand Prompt by using the following command,
mfp cordova create AppName
After that mfp plugin was installed automatically inside my project.Then
I created mfp project using,
mfp create projectname
App created successfully..Then using
mfp push
i pushed my app inside the server 7.1 version.
After i have started to run my ionic app using,
ionic run android --livereload
In there i am getting error as,
TypeError: platforms[platformId].parser is not a function
My configuration:
cordova : 5.4.1 version android : 3.6.4 version
Anyone help will be Appreciated!!!!
You did not create an Ionic app. You created a Cordova app.
You wrote: mfp cordova create AppName. That's not how you create an Ionic app... that's how you do it: ionic start todo blank.
Please read the Ionic docs.
http://ionicframework.com/docs/guide/installation.html
To create an Ionic app and then integrate it with MobileFirst , you can follow this guide: https://www.raymondcamden.com/2015/03/23/working-with-ibm-mobilefirst-and-the-ionic-framework/
i am facing this error when i want to run ionic build android command.
i tried everything and obviously i have no idea what to do here .
i have SDK and JDK , Gradle and other things .
if i run the ionic serve command it works with no problem and the app shown in the browser but i can't build the app with build command .
i installed the cordova and ionic using this tutorial http://learn.ionicframework.com/videos/windows-android/ and i think i dont miss anything around here .
when i run android command , it shown up the android sdk manager with the API installed , when i run gradle it works . but this one does not work
here is the picture of the error :
This happens to me with ios builds and re-installing the platform will always worked for me. try that
ionic platform remove android
ionic platform add android
read here on almost the same thing (but with ios)
HTH