Demo for an experiment with Webpack, which is a step by step code example with explanatory slides.
Online version of finished app can be found at Online Demo.
This is a demonstration for Webpack beginners to learn about module bundlers and how they can improve web development. It's a working application that takes a search query and shows suitable gifs as a result.
The slides that explain this demonstration can be found here:
This repository has six subfolders named step1 to step6. Each step is based one on the other, and progressively demonstrates the main benefits of using Webpack as a module bundler.
To build each step, go into the folder and do the following:
npm install
node_modules/webpack/bin/webpack.js
- open
index.html
in a browser
Basic setup without any modules.
How to load Javascript modules.
Loader concept and Babel as Javascript preprocessor.
More Loader details, HTML templates and CSS modules.
Static assets and external files.
Loading and bundling local libraries.
Please inspect the "Inspirational Sources" of the slides for more information.
MIT licensed
Please tweet me or create a Github issue if you have any questions or remarks.