运行npm run build

来源:2-1 vue-loader+webpack项目配置

前端工程师666777888

2018-11-22 13:56

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):


写回答 关注

2回答

  • 慕码人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吗

Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84605 学习 · 787 问题

查看课程

相似问题