How to add parameters to the scripts command of package.json?

  1. the project I created using the webpack template of vue
  2. want to add some parameters to the scripts of package.json
  "scripts": {
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
    "dwe": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js -- --cparam",
    "start": "npm run dev -- --reporter",
    "lint": "eslint --fix --ext .js,.vue src",
    "build": "node build/build.js"
  },

I want to introduce different routes
, such as npm run dev-- ships=4 , by reading the parameter cparam when introducing routes. This prompts me his dependency was not found: so that
has tried many ways but failed. Does anyone know how to do it?


use-- you can splice extra content for npm scripts. Note-- the space after it

npm run dev ----ships 4
Menu