问答详情
源自:2-1 vue-loader+webpack项目配置

运行npm run build

One CLI for webpack must be installed. These are recommended choices, deliveredas separate packages:

 - webpack-cli (https://github.com/webpack/webpack-cli)

   The original webpack full-featured CLI.

We will use "npm" to install the CLI via "npm install -D".

Do you want to install 'webpack-cli' (yes/no):


提问者:前端工程师666777888 2018-11-22 13:56

个回答

  • 慕码人8190135
    2018-11-22 22:45:35

    需要的

    这些是我安装的插件版本:

    "devDependencies": {

        "@babel/preset-env": "^7.1.6",

        "babel-plugin-syntax-jsx": "^6.18.0",

        "stylus": "^0.54.5",

        "stylus-loader": "^3.0.2",

        "webpack-cli": "^3.1.2"

    }


  • 前端工程师666777888
    2018-11-22 13:57:09

    为什么我的会出现这些提示,而老师的没有出现呢?出现这个提示,要安装webpack-cli吗