webpack遇见的坑:Please install 'webpack-cli' in addition to webpack itself to use the CLI.
Posted jianxian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webpack遇见的坑:Please install 'webpack-cli' in addition to webpack itself to use the CLI.相关的知识,希望对你有一定的参考价值。
webpack-cli没被找到:
在webpack4.0之后,需要全局安装webpack-cli,
在全局安装webpack之后,cnpm i webpack-cli -g 在局部使用webpack时无需再安装了
以上是关于webpack遇见的坑:Please install 'webpack-cli' in addition to webpack itself to use the CLI.的主要内容,如果未能解决你的问题,请参考以下文章
webpack--webpack.optimize.CommonsChunkPlugin has been removed, please use config.o
Error: webpack.optimize.UglifyJsPlugin has been removed, please use config.optimizat