Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

ilmente/webpack-devtalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack DevTalk (06.07.2016)

by Alessandro Bellini - ilmente.com

This repo contains:

I did it for my webpack devtalk. Here is the link to the presentation video.

Requirements

  • node.js >= v6.0.0
  • apache (or nginx) server
  • webpack 1.13.x globally installed

01 Easy Peasy

The simplest. A very basic and minimal webpack application. You need apache server (or nginx) in order to make it works.

# webpack
npm run build # build the assets
# or
webpack --config ./webpackfile.js # you need webpack as a global node module

02 Fair Enough

This is a simple react/redux application: a shell-alike site. In this example I'm creating a more complex webpack configuration, using the default single file approach and the multi configuration one, sometimes useful to:

  • split in different tasks;
  • provide compatibility against legacy build systems/configurations;
  • increase (?) watching performance.
# server
npm run serve # create a server on port 9990

# webpack
npm run build # build the assets in default mode
npm run build multi # build the assets in multi configuration mode
npm run build [multi] -- --watch # build the assets in watch mode

03 Mmm...

This is supposed to be the advanced example: a foundation-based site, with multiple entry points (better watch mode performance), commong chunk optimization (shared dependencies management), bundle lazy loading and karma test integration.

# server
npm run serve # create a server on port 9991

# webpack
npm run build # build the assets in default mode
npm run build -- --watch # build the assets in watch mode
npm run build -- --prod # build the assets in production mode

Have fun! :)

About

Webpack DevTalk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published