Skip to content

jmsv23/webpack-demo

 
 

Repository files navigation

Webpack-demo

This repository was used during a the webinar Introduction to Webpack hosted by weKnow. During this session I tried to show how to use Webpack.

Webpack is a nodejs tools used to create bundles to distrube your node applications providing all yours scripts, images, css and others assets.

Installation

$ npm install

Examples

Simple bundle packaging

$ npm run build

Packing multiple bundles

$ npm run build:multiple

Create a package for all vendors

$ npm run build:implicit

Create two specific packages for vendors

$ npm run build:explicit

Ignore partial parts of a vendor

$ npm run build:ignore

Reduce bundle sizes grouping bungles by chunks

$ npm run build:split

Minify bundles

$ npm run build:uglify

Gzip bundles

$ npm run build:compression

Process LESS and CSS

$ npm run build:css

About

Webpack demostation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • CSS 11.5%