{"repo":"andywer/webpack-blocks","free":true,"listed":false,"github":"https://github.com/andywer/webpack-blocks","clone":"git clone https://github.com/andywer/webpack-blocks.git","description":"📦 Configure webpack using functional feature blocks.","language":"JavaScript","stars":2964,"topics":["webpack","webpack-blocks","babel","postcss","typescript"],"license":"MIT","category":"dev-tools","readme_excerpt":"webpack-blocks Functional building blocks for your webpack config: easier way to configure webpack and to share configuration between projects. Ready to use blocks to configure popular tools like Babel , PostCSS , Sass , TypeScript , etc., as well as best practices like extracting CSS — all with just one line of configuration. Note: This is the documentation of webpack-blocks v2, compatible with webpack 4. Check out the v1 branch if you need to be compatible with webpack 3 or older. \"Finally, webpack config done right. (...) Webpack clearly wants to stay low-level. So it makes total sense to outsource configuring it to well designed blocks instead of copy-paste.\" Dan Abramov via twitter (Co-author of Redux, Create React App and React Hot Loader) Table of contents - Installation - Example - More examples - Custom blocks - Available webpack blocks - Helpers - Shorthand setters - Third-party blocks - Design principles - FAQ - Like what you see? - Contributors - License Installation Example The following sample shows how to create a webpack config with Babel support, dev server and Autoprefixer. See shorthand setters and helpers documentation. All blocks, like babel or postcss are also available as their own small packages, webpack-blocks package wraps these blocks, shorthand setters and helpers as a single dependency for convenience. More examples CSS modules: TypeScript: Custom blocks Need a custom block? A simple block looks like this: If we use myCssLoader in match() then con","default_branch":null,"files":null,"tree":[],"storefront":"/r/andywer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andywer/webpack-blocks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}