我在package.json中构建脚本为
"clean-build": "rimraf build",
"prebuild": "npm run clean-build",
"build": "webpack --end.dev",
但是我在构建任务时遇到错误。
> webpack --end.dev
webpack 2.1.0-beta.21
Usage: https://webpack.github.io/docs/cli.html
Usage without config file: webpack <entry> [<entry>] <output>
Usage with config file: webpack
以下是整个code
你知道我在构建任务中缺少什么吗?
由于
答案 0 :(得分:0)
您已--end.dev
将其更改为--env.dev