how do I use the npm command to run script, in webpack on the command line to pass parameters to the webpack configuration file on the command line? At present, we know a way to pass npm run create-app=test-router=1-store=1, but it is too troublesome, is there any simple way to pass parameters?
in package.json
"scripts": {
"create": "cross-env NODE_ENV=development node ./build/generate.js --app --store --router"
},
Command Line npm
npm run create