Skip to content

Instantly share code, notes, and snippets.

@redsnapperrice
Last active December 4, 2016 07:31
Show Gist options
  • Save redsnapperrice/fe7c7248bb83f41db3b4361a942154d1 to your computer and use it in GitHub Desktop.
Save redsnapperrice/fe7c7248bb83f41db3b4361a942154d1 to your computer and use it in GitHub Desktop.
The way to install webpack with "--save-dev"

The way to install webpack with "--save-dev"

1. Create package.json on your working directory

$ npm init

2. Add the following objects in package.json

"scripts": {
  "build": "webpack"
},

3. Install webpack on your working directory

$ npm install webpack --save-dev

4. Compile your files

$ npm run build ./src/index.js ./js/app.bundle.js

webpack

https://webpack.github.io/docs/usage.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment