• Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
    JavaScript
  • Created about 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Webpack tutorial held at Uppsala JS

#webpack-tutorial

This repo contains what was demonstrated on Uppsala.js, November 3, 2016.

Together we built a Javascript app and explored many parts of Webpack and how we can use Webpack to create production ready code as well as use it to help with our development process.

Tutorial explains:

  • What is Webpack
  • Webpack vs Gulp, Grunt, Browserify, Rollup, NPM Scripts
  • 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

Video and Slides

YouTube Screenshot

Installation

1. Install

# Clone this repo
git clone https://github.com/emiloberg/webpack-tutorial.git

# Install dependencies
npm install

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

# Run for production
npm run build

Links

Things in the presentation

State of Javascript


Webpack

Webpack Dev Server

Plugins

Loaders

More things to read

Contact

Feel free to contact me:

// Emil Oberg

More Repositories

1

markdown-styleguide-generator

Will search all your (s)css files for comments and generate a single page html styleguide
JavaScript
62
star
2

liferay-ddmtool

Tool for authoring, uploading, downloading and synchronizing Liferay DDM related stuff (Structures and Templates) across environments.
JavaScript
36
star
3

Liferay-Instant-Deploy-Theme-Changes-Gulp-Script

This small Gulp script will monitor your source code theme folder and when a file is changed: 1. Instantly inject those theme changes into the server. 2. Makes sure that the scss is recompiled into a css file if needed. 3. LiveReload. If the scss is changed, the browser is updated instantly - without need to reloading the page.
JavaScript
25
star
4

oppna-program-reklistan-app

iOS and Android App for http://reklistan.vgregion.se
JavaScript
16
star
5

node-red-contrib-file-function

Read function javascript from file. This way you can use your favorite editor/IDE to develop Node-RED functions
JavaScript
12
star
6

node-red-contrib-tellstick

Node-RED nodes to send radio data with a Tellstick, and to send and receive radio data with a Tellstick Duo. Switch lights on/off, listen to sensors, listen to remotes, etc.
JavaScript
10
star
7

node-red-contrib-mopidy

A Node-RED node to communicate with Mopidy
JavaScript
9
star
8

hubot-jira-servant

Connects Hubot with Jira
JavaScript
9
star
9

Uppsala.js-NativeScript-demo

This repo contains what was demonstrated on Uppsala.js, September 17, 2015. Together we built a Reddit reader with NativeScript.
JavaScript
8
star
10

liferay-react-hello-world

Starter repo to work with React in a Liferay environment
JavaScript
7
star
11

node-red-contrib-advanced-ping

A Node-RED node which takes input and pings a remote server
JavaScript
4
star
12

Liferay-Repeatable-Fields-Reorder-Hook

Liferay's repeatable fields are awesome, but they can not be reordered! This is a hook to add re-ordering functionality to repeatable fields.
JavaScript
3
star
13

nativescript-animated-sidebar-menu-example

Demonstrating one way to create an animated sidebar menu without any external dependencies, for both iOS and Android.
JavaScript
3
star
14

nativescript-emulator-reload

This small gulp script will monitor the source files of a NativeScript project and when a file is changed it'll rebuild and reload the emulator. Will also use Babel to compile your ES6+ JS into ES5 if you want it to
JavaScript
2
star
15

vtest-json-reporter

JavaScript
1
star
16

vtest-html-reporter

HTML
1
star
17

dotfiles

Shell
1
star
18

React-static-website-boilerplate

A Boilerplate to create a static website from a React codebase
JavaScript
1
star
19

tcomb-form-builder

React Component - Visual form builder for tcomb-form.
1
star
20

webstorm-settings

1) Clone this repo. 2) Open Webstorm 3) File > Settings Repository 4) Give it URL to repo
JavaScript
1
star
21

nativescript-crashing-listview

JavaScript
1
star
22

new-tcomb-form-builder

React Component - Visual form builder for tcomb-form
JavaScript
1
star
23

vtest-console-reporter

JavaScript
1
star
24

oppna-program-reklistan-theme

VGR, Theme for reklistan.vgregion.se
JavaScript
1
star
25

nativescript-sample-from-screenbuilder

JavaScript
1
star
26

emiloberg.se

React based static site generator for emiloberg.se
JavaScript
1
star
27

homeauto-node-pi-speaker

Node Server intended to run on a Raspberry Pi which acts as speaker audio source
JavaScript
1
star
28

redirection-service

Elm
1
star
29

gulpscript-material-design-icons-svg-to-png

Gulpscript to handle Material Design Icons by Google. Re-color and save them as pngs in different sizes.
JavaScript
1
star
30

oppna-program-reklistan-skinny-json

Java
1
star
31

homeauto-shell-before-after-shairport

Helper scripts to turn the power of the speakers on/off when a Raspberry Pi receives/loses an (Shairport Sync) AirPlay stream.
Shell
1
star
32

nativescript-sample-masterdetails

NativeScript Sample of a Master/Details Layout
JavaScript
1
star
33

oppna-program-reklistan-workflows

Workflows for reklistan.vgregion.se
1
star
34

oppna-program-reklistan-ddm

Journal Structures/Templates/Asset Publisher Display Templates for reklistan
FreeMarker
1
star
35

screenshooter

Take full length screenshots of an array of URLs
JavaScript
1
star
36

react-boilerplate

Minimal React boilerplate
JavaScript
1
star
37

sprint.nu

This is a very small lunch hack script that grabs the name and release date of the current sprint of a Jira agile board and displays it on a web page.
PHP
1
star