ionic2 - How to make a prod build in "Ionic upload" command? -


i want use ionic deploy service in ionic cloud.

when run ionic upload command, dev build triggered instead of prod build.

is possible create --prod build , upload?

one of major reasons multiple configurations in code bundled --prod build only.

ionic upload --deploy=dev [info] running app-scripts build:  [09:55:59]  build dev started ... [09:55:59]  clean started ... [09:55:59]  clean finished in 1 ms 

you pipe npm scripts run ionic --prod first , ionic upload

"scripts":{    "custom-upload":"ionic cordova build --prod | ionic upload" } 

and run in terminal

$: npm custom-upload  

this still run dev build think prod build should packaged well. not can specify build type in ionic upload command, makes me think ionic upload not upload production build ionic view. , if case might want consider changing configurations setup in prod build set used if not on localhost instead on based on build.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -