Installation
Nodejs
Install node. js
Nodejs comes with a package management called NPM.
Webpack
Webpack will be installed via NPM:
NPM Install Webpack-g
Webpack has now been installed globally, and the webpack command can be used.
Use Webpack in a project
It's best to use Webpack as a dependency in your project. In this case you can select a local webpack version and will not be forced to use a single global version.
Add a Package.json configuration file by using the following command:
NPM Init
If you don't want to post your project on NPM, the reason for doing so is not important.
Install and add Webpack to Package.json instructions:
NPM Install Webpack--save-dev
Version
There are currently two versions of Webpack available. Stable version and beta version. The beta version is marked with-beta in the version number. The beta version may protect some minor changes or experimental features and lacks testing. View different by Changlog. For serious projects, you should use the stable version:
NPM install [email protected]--save-dev
Dev Tools (development tool)
If you want to use dev tools, you should install it
NPM Install Webpack-dev-server--save-dev
Continue Reading
You can continue reading usage
"Translation" Webpack document translation installation