Skip to content

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

Notifications You must be signed in to change notification settings

suwigyarathore/webpack-production

Repository files navigation

#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

# Clone this repo
git clone https://github.com/suwigyarathore/webpack-production.git

# Install dependencies
npm install

# Run for development
npm run dev
# go to http://localhost:8080

# Run for production
npm run build

Links

State of Javascript


Webpack

Webpack Dev Server

Plugins

Loaders

Releases

No releases published

Packages

No packages published