webpack4.x initialization works

1. Global installation webpack4.x

cnpm install webpack webpack-cli --g

2. Initialize npm

the init --Y CNPM (default is yes)

3. Installation dependencies

cnpm install

4. Add the file package.json

"Private": to true (to prevent the release of private npm package)

Guess you like

Origin blog.51cto.com/13550695/2457028