Awesome Lists

awesome-webpack-perf

by iamakulov

awesome listpushed about 5 years ago

A curated list of webpack tools for web performance

AI summary

Webpack perf optimizer

A curated collection of tools and plugins to optimize web performance using Webpack

stars
957
forks
25
watching
27
awesome lists
2
entries
46
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/iamakulov/awesome-webpack-perf/links.svg)](https://awesome.facts.dev/awesome/iamakulov/awesome-webpack-perf)
HTML
<a href="https://awesome.facts.dev/awesome/iamakulov/awesome-webpack-perf"><img src="https://awesome.facts.dev/shield/iamakulov/awesome-webpack-perf/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/iamakulov/awesome-webpack-perf/links.svg

What's in the list

46 links in 17 sections, with live GitHub stats.activeno commit in 2y

Built-in stuff

  • mode: 'production'

    in the webpack config enables the common production optimizations

  • optimization.splitChunks

    in the webpack config enables splitting one bundle into smaller chunks. This helps to load less JS for each page and cache better

  • optimization.runtimeChunk

    in the webpack config enables splitting webpack’s runtime code into a separate chunk. This improves long-term caching

JS minifiers

CSS / Minifiers

  • postcss-csso

    is a PostCSS plugin that can be used with

  • csso-webpack-plugin

    only works when you use . However, it compresses CSS better than the loader – e.g., it can merge rules from multiple source files

  • cssnano

    is a PostCSS plugin that can be used with

  • optimize-css-assets-webpack-plugin

    , technically, works with any minifier, but ships (and works best) with . This plugin only works when you use . However, it compresses CSS better than the loader – e.g., it can merge rules from multiple source files

  • postcss-clean

    is a PostCSS plugin that can be used with

CSS / Other optimizers

  • purgecss-webpack-plugin

    analyzes the app code and styles and removes CSS rules that aren’t used anywhere. Works great with CSS frameworks like Bootstrap

CSS / Extraction plugins

CSS / Critical CSS plugins

  • html-critical-webpack-plugin

    runs the tool on every webpack build. Uses a headless browser, returns styles only for

  • critters-webpack-plugin

    renders HTML in a JSDom environment on every webpack build. Doesn’t use a headless browser (= less heavy); returns all styles needed by the page, not only the above-the-fold ones (= may fix some glitches)

  • isomorphic-style-loader

    helps to extract critical styles during server-side rendering

CSS-in-JS / Minification

  • minify-cssinjs-loader

    works with all CSS-in-JS libraries thanks to regex-based matching. Does basic compression of style strings

CSS-in-JS / Zero-runtime libraries

Images / Image compression tools: universal

Images / Image compression tools: for a single format

Fonts

Gzip/Brotli

Prerendering

Progressive web apps (PWA)

Other web performance lists

  • Awesome WPO

    – A curated list of Web Performance Optimization

  • Webpack Libs Optimizations

    – A collection of Babel and webpack plugins to optimize the size of various popular libraries

More related projects

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.