传递CLI参数时,Webpack.2.0构建错误

时间:2016-09-02 00:23:02

标签: webpack webpack-2

我在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

你知道我在构建任务中缺少什么吗?

由于

1 个答案:

答案 0 :(得分:0)

您已--end.dev将其更改为--env.dev