• Stars
    star
    228
  • Rank 175,267 (Top 4 %)
  • Language
  • Created about 9 years ago
  • Updated over 4 years ago

Reviews

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

Repository Details

A repository with examples and exercises to learn webpack for newbies

Code Climate


(Jul 2020) learn-webpack is not maintained anymore. I created this repository 5 years ago, when I was learning how to use Webpack and the documentation was poor and confusing. Since back then the community has done a great effort and I think Webpack documentation has become one of the best resources to learn how to use this library. Please go there to learn it, and feel free to write an issue or send me a message if you need my support with any of the examples I added in this repository.


Learn Webpack

Webpack helps you managing dependencies in your project, and also offers a friendly and fast development environment, simplifying a lot of common tasks behind a simple configuration file.

It also allows you to bundle your modules into static assets for browsers. Its killer feature is the known as hot module replacement, which lets your live code in the browser update automatically as you change files in your preferred editor without a page reload.

Unfortunately, webpack doc pages are not friendly enough for beginners like me. That's why I decided to create this repository: to help people to learn webpack with a collection of exercises and examples.

How to use this repository

First of all, clone or fork this repository. If you are not used with npm or git, This is what you basically need to do:

The examples in this repository use yarn as dependecy package manager, to take advantage of yarn's cache, since most of them reuse the same dependencies. In the examples it is assumed that you've already installed yarn, although it's not mandatory. You could always do npm install to install the dependencies in every example.

git clone [email protected]:danderu/learn-webpack.git
cd learn-webpack
cd examples/some_example_directory
yarn

If you need more information about forking a repository, follow this guide.

Repository index

Navigate into the example folders to find out the different webpack configuration examples to help you get started with this module bundler. You will learn about the different configuration possibilities, from the simplest one to the most advanced configuration for deploying into production your bundles.

How to collaborate

Please feel free to propose new examples or ask for help with any configuration you are trying to learn.

License

MIT