Skip to content

bug: build flags not passed to vue-cli-service #4642

Description

@liamdebeasi

Description:

Custom build flags are not being passed to vue-cli-service preventing users from making development builds.

Steps to Reproduce:

  1. ionic start --type=vue. Any template is fine.
  2. Run ionic build -- --mode development. Notice that it still says "Building for production..."
    I would expect that the mode flag gets passed so that vue-cli-service builds for development.

Note: The following command works as expected: npm run build -- --mode development

My ionic info:

Ionic:
Ionic CLI : 6.12.4 (/Users/liamdebeasi/.nvm/versions/node/v15.0.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 5.6.0-dev.202102092029.cc5c8c6
Capacitor:
Capacitor CLI : 2.4.5
@capacitor/core : 2.4.5
Utility:
cordova-res : not installed
native-run (update available: 1.3.0) : 1.2.2
System:
NodeJS : v15.0.1 (/Users/liamdebeasi/.nvm/versions/node/v15.0.1/bin/node)
npm : 7.0.7
OS : macOS Big Sur

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions