Software Alternatives & Reviews

Speed up Next.js build with Typescript and Tailwind CSS

Webpack React Purgecss PostCSS Next.js
  1. Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
    Pricing:
    • Open Source
    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.

    #Web Application Bundler #JS Build Tools #Module Bundler 219 social mentions

  2. 2
    A JavaScript library for building user interfaces
    Pricing:
    • Open Source
    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.

    #Javascript UI Libraries #JS Library #JavaScript Framework 775 social mentions

  3. Easily remove unused CSS
    Pricing:
    • Open Source
    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.

    #Developer Tools #Development #Design Tools 33 social mentions

  4. Increase code readability. Add vendor prefixes to CSS rules using values from Can I Use. Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you.
    Pricing:
    • Open Source
    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).

    #Developer Tools #Design Tools #CSS Framework 39 social mentions

  5. A small framework for server-rendered universal JavaScript apps
    Pricing:
    • Open Source
    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.

    #Developer Tools #Web Frameworks #JavaScript Framework 919 social mentions

Discuss: Speed up Next.js build with Typescript and Tailwind CSS

Log in or Post with