This article brings you the content is about Webpack use command line to install the steps, there is a certain reference value, the need for friends can refer to, I hope to help you.
Weback Command-line installation
The first step:
NPM Install WEBPACK-G //Global installation
Step Two:
NPM init //initialization
Step Three:
NPM Install–save-dev webpack //project directory installation –save-dev is used in development,-save to save to Package.json inside
Fourth Step:
Webpack-v //Check the version number
Extended:
NPM Install when installing NPM package, there are two command parameters can write their information to the Package.json file, one is NPM install–save another is npm Install–save-dev, their surface difference is –save will The package name is added to the Package.json file dependencies key, –save-dev is added to the Package.json file devdependencies under Devdependencies below the module, is the development of our use of
The module under dependencies is the module that we need to rely on when we post it (that is, the dependency module used in production)