Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify ionic build folder in CLI

I have a ionic app and to build the project in android I use the command

ionic build android

It works fine and i'm able to build the project.

However if I want to specify an external folder in the path like...

ionic d:\Projects\mobile build android

How can I achieve this ?

like image 492
user1184100 Avatar asked Nov 26 '22 05:11

user1184100


1 Answers

You can do this. If you have an ionic:build npm script defined it will call that to do the build.

"scripts":{
    "ionic:build": "ionic-app-scripts build android --release --prod  --wwwDir www --buildDir build"
}
like image 200
Nix Avatar answered Nov 28 '22 19:11

Nix