- the project I created using the webpack template of vue
- 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?