Speed up Next.js build with Typescript and Tailwind CSS

This page summarizes the projects mentioned and recommended in the original post on dev.to

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. tailwindcss-jit

    Enter @tailwindcss/jit, a drop-in replacement (though not with 100% feature parity yet) that collects the classes used by your files and only generates the requested classes.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. precss

    Discontinued Use Sass-like markup in your CSS

    In this process, we had to get rid of two PostCSS plugins that were not updated to work with PostCSS 8, which is required by @tailwindcss/jit: precss and postcss-rtl, both of which are unmaintained and won't be updated.

  4. postcss-nesting

    Discontinued Nest style rules inside each other

    We replaced the former with postcss-nesting and rewritten the CSS to not use the rest of the features from precss - in our case, this was an easy job.

  5. tailwindcss-rtl

    Enabling bidirectional support on tailwindcss framework

    The latter was replaced by tailwindcss-rtl, which is instead a Tailwind plugin. It works great and requires very little effort, you just need to search and replace some non-RTL classes with RTL equivalents - which I expect to be easily swappable once Tailwind supports CSS Logical Properties.

  6. esbuild-loader

    💠 Speed up your Webpack with esbuild ⚡️

    esbuild is a JS and TS bundler that promises ultra-fast build times. We use webpack, and there is support to leverage esbuild with esbuild-loader.

  7. Next.js

    The React Framework

    On a separate note, we haven't suffered from this out-of-memory situation since we made the switch, and it seems to be related with excessive amounts of CSS.

  8. React

    The library for web and native user interfaces.

    In the project I'm currently working with, we have a platform split between a single-page React app and a Next.js SSR website. The development server runs both in the same machine, using containers, but it has only one processor core and 2 GB of RAM.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. purgecss

    Remove unused CSS

    This has the benefit of not only reducing the load on the parser, but also generating a much smaller CSS file by default, even without minification: a drop from 17.2 MB to 461 KiB before PurgeCSS for the SPA, and from 110 KiB to 1.34 KiB for the Next.js website.

  11. PostCSS

    Transforming styles with JS plugins

    The big issue with Tailwind is that it pulls a huge amount of CSS classes into the parser, in the form of a 3.6 MB CSS file - or 6.0 MB if you enable dark mode. This is heavy on PostCSS, uses a lot of memory (our server would frequently trigger OOM kills).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Créer un formulaire avec Nextjs et Tailwind

    2 projects | dev.to | 24 Aug 2021
  • Why I created kernel.css and what it is

    2 projects | dev.to | 17 Jul 2025
  • MailPlanet🌍: Visualize email origins on a global map

    4 projects | dev.to | 8 Jun 2025
  • How To Build End-To-End AI Voice Agentic App Using AI/ML API and OpenAI Realtime API

    4 projects | dev.to | 13 May 2025
  • Less Code, More Flow: Streamline your Frontend Workflow with Shadcn/UI

    3 projects | dev.to | 24 Apr 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?