项目作者: suwigyarathore

项目描述 :
This repo contains how to use webpack to make production ready build
高级语言: JavaScript
项目地址: git://github.com/suwigyarathore/webpack-production.git
创建时间: 2017-05-14T23:50:27Z
项目社区:https://github.com/suwigyarathore/webpack-production

开源协议:

下载


webpack-tutorial

This repo contains how to use webpack to make production ready build

Topics Covered:

  • What is Webpack
  • How to create a production ready bundle
  • How to do code splitting
  • How to do dead code elimination
  • How to do tree shaking to remove dead code
  • How to do hot module replacement (HMR)
  • How to do hot/live reload
  • How to use ES6/ES.next/ES2015 code in production with Babel
  • How to load images
  • How to load style (css)
  • …and more

Installation

1. Install

  1. # Clone this repo
  2. git clone https://github.com/suwigyarathore/webpack-production.git
  3. # Install dependencies
  4. npm install
  5. # Run for development
  6. npm run dev
  7. # go to http://localhost:8080
  8. # Run for production
  9. npm run build

State of Javascript


Webpack

Webpack Dev Server

Plugins

Loaders