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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46a9e-44bdd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46a9e-44bdd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?