You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
webpack is now installed globally and the webpack command is available.
Use webpack in a project
It's best to have webpack as a dependency in your project. Through this you can choose a local webpack version and will not be forced to use the single global one.
Add a package.json configuration file for npm with:
$ npm init
The answers to the questions are not so important if you don't want to publish your project to npm.
Install and add webpack to the package.json with:
$ npm install webpack --save-dev
Versions
There are two versions of webpack available. The stable one and a beta version. The beta version is marked with a -beta in the version string. The beta version may contain fragile changes or experimental features and is less tested. See changelog for differences. For serious stuff you should use the stable version:
$ npm install webpack@1.2.x --save-dev
Dev Tools
If you want to use dev tools you should install it: