传递 CLI 参数时 Webpack.2.0 构建错误
Webpack.2.0 build error when passing CLI arguments
我在 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
你知道我在构建任务中缺少什么吗?
谢谢
您已 --end.dev
将其更改为 --env.dev
我在 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
你知道我在构建任务中缺少什么吗?
谢谢
您已 --end.dev
将其更改为 --env.dev