How to specify the ion assembly folder in the CLI

I have an ionic application and to create a project in android I use the command

android ion compilation

It works great and I can create a project.

However, if I want to specify an external folder in a path, for example ...

ionic d: \ Projects \ mobile build android

How can i achieve this?

+4
source share
2 answers

Can you do this. If you have an ionic:buildnpm script installed , it will call this to build.

"scripts":{
    "ionic:build": "ionic-app-scripts build android --release --prod  --wwwDir www --buildDir build"
}
+2
source

There is another way to achieve your goal. Instead of passing the path in ionic commands (which is not a valid command), you can first go to the path where you want to create the ionic application using the cd command.

d:

cd\Projects\mobile.

android

-4

Source: https://habr.com/ru/post/1608217/


All Articles