Skip to content
This repository was archived by the owner on Apr 29, 2018. It is now read-only.

Latest commit

 

History

History
69 lines (58 loc) · 2.07 KB

File metadata and controls

69 lines (58 loc) · 2.07 KB

Webpack v2 by example

Lets learn WebPack : The module bundler

See webpack-1 branch for v1

Prerequisites

  • node js >=6.9.1
  • npm >=3.10.9

Quick Start

  • Clone this repo, checkout to desired branch
# Install dependencies
npm install

# Run dev server at localhost:9000
npm run dev

  • Generate dist (production ready) files
npm run build

Resources

Directory Structure

├── project-name/
│   ├── dist/
│   │   ├── js/
│   │   ├── css/
│   │   ├── fonts/
│   │   ├── img/
│   │   └──  index.html
│   ├── node_modules/
│   ├── src/
│   │   ├── img/
│   │   ├── js/
│   │   ├── css/
│   │   ├── index.js
│   │   └──  index.html
│   ├──  .gitignore
│   ├──  webpack.config.js
│   └──  package.json

License

MIT License