A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ionic-team/ionic-cli/issues/4329 below:

Cannot pass "advanced options" to `ng` when when running `ionic build --engine=cordova` · Issue #4329 · ionic-team/ionic-cli · GitHub

Description:

I am trying to use the ngx-build-plus package, so I can customise the webpack.config.js used by Ionic/Angular when builds are created.

It does work when I run the build command like this:

ionic build --platform=ios -- --extra-webpack-config webpack.partial.js

And I can see in the console, that it then calls the ng CLI like so, passing along the --extra-webpack-config argument:

ng run app:build --extra-webpack-config webpack.partial.js

However, if I want to build for cordova then I also need the --engine=cordova argument. So I call it again:

ionic build --platform=ios --engine=cordova -- --extra-webpack-config webpack.partial.js

But now the --extra-webpack-config option is no longer passed to ng...

ng run app:ionic-cordova-build --platform=ios

Why is that? Is there any workaround, or can this be fixed?

My ionic info:

Ionic:

   Ionic CLI                     : 5.4.15 (/Users/asgeo1/.node/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.7
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.1, (and 21 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.3.0

System:

   Android SDK Tools : 26.1.1 (/Users/asgeo1/Development/Android/sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v12.14.1 (/Users/asgeo1/.nodenv/versions/12.14.1/bin/node)
   npm               : 6.13.4
   OS                : macOS Mojave
   Xcode             : Xcode 11.2.1 Build version 11B53


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4