Cnpm installation of webpack has the following problems, how to configure webpack

clipboard.png
so now it is whether webpack can be used and how to complete the installation and normal use of webpack! Please give us your advice.

Feb.28,2021

cnpm install-g webpack@3

the novice tutorials on the Internet should be aimed at v3, so you should install V3


this is webpack4.0. You need to install webpack-cli globally

according to his hint, npm install webpack-cli-D is also useless

npm install webpack-cli -g
Menu