Writing Modular Stylesheets with CSS Modules
Composition has long been a goal of CSS design. Creating a rich library of styles that can be reused and combined saves time in the long run, but often lead to unmaintainable or verbose code.
WebPack is commonly used for bundling JS modules, but its flexibility means it can also be used to load CSS Modules: local styles that can be imported and exported just like scripts.
This talk introduces WebPack and will demonstrate how to write, bundle and use CSS Modules. We'll also examine their benefits, and why they can help in ways other tools have failed in the past.