PostCSS
esbuild
Our great sponsors
PostCSS | esbuild | |
---|---|---|
53 | 202 | |
26,249 | 31,790 | |
0.8% | - | |
9.3 | 9.8 | |
4 days ago | 7 days ago | |
TypeScript | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PostCSS
-
PurgeCSS & styled-components: Does It Work?
The second of those two reasons is very disappointing, as PostCSS is a rich ecosystem of plugins to extend your CSS' functionality and build process. PostCSS is what Babel is for JavaScript, and unfortunately styled-components is missing out on an entire suite of new functionality.
- Error: PostCSS plugin tailwindcss requires PostCSS 8
-
How to Build a Fullstack Next.js Application (with Storybook & TailwindCSS)
postcss and autoprefixer are tools for transforming CSS that Tailwind uses to do its job.
- postcss 7.0.0 - 8.2.9 Severity: moderate Regular Expression Denial of Service
-
tailwind: no simple way to get started
PostCSS is a whole other package. Tailwind can integrate with PostCSS.
Same goes for PostCSS, which I also mentioned. If you don't know what that is, please do take the time to find out. I suggested that you may want to avoid it for the time being while you're still learning, though.
-
Supercharge your CSS with Tailwind
With the pre-processors, you can shrink your CSS and increase reuse through variables. In almost all working cases, it will be an improvement above vanilla CSS. There are also implementations now, via PostCSS, that add vendor prefixes for you. The major drawback is, of course, that you have to compile your CSS beforehand; usually done via part of your tooling such as Grunt or Gulp.
-
Engineering Design Systems In 2022
Making your library as modular as possible will aid with the adoption of it. A team should be able to pick and choose which parts they need of your system to keep their application as performant as possible. There are numerous tools you can use to aid with this process such as Sass, PostCSS and TailwindCSS.
-
Some front-end web technologies you should be aware of as a newcomer 🧐
PostCSS
- Why isn't tailwind v3 working with React?
esbuild
-
Using the ESBuild plug-in mechanism to achieve the desired functionality
esbuild is a general purpose code compiler and build tool that uses golang builds, it is very fast and 1~2 orders of magnitude higher in performance than the existing js toolchain. It's not an out-of-the-box build tool yet, but with its plugin system we can already do a lot of things.
import { Plugin } from 'esbuild' /** * Automatically exclude all dependencies * Some regular expression syntax of js is not supported by golang, see https://github.com/evanw/esbuild/issues/1634 */ export function autoExternal(): Plugin { return { name: 'autoExternal', setup(build) { build.onResolve({ filter: /. */ }, (args) => { if (/^\. {1,2}\//.test(args.path)) { return } return { path: args.path, external: true, } }) }, } }
-
Go: The language of cloud-native development - SD Times
But then you see stuff like ESBuild, where the Evan Wallace (the author) tried to write in both Rust and Go, and his Go version was faster. According to him, this was probably because Go runs destructors in a parallel thread, whereas Rust runs them in the same thread (source), among other factors. The same performance could theoretically be achieved in Rust, but it would demand a lot more effort.
-
Better Backend DX: Fastify + ESBuild = ⚡️
Use esbuild as a compiler and backend bundler
Will provide an alternative solution for Windows later. (ref: https://github.com/evanw/esbuild/issues/976)
- Unix command line conventions over time
-
Why You Should Ditch Create-React-App for Vite
Esbuild is a Javascript build tool written in Go, which pre-bundles dependencies 10-100 times faster than Javascript-based bundlers.
-
Make your end to end tests fast
We did this via the npm threads wrapper and esbuild. We first moved all of our compute code into a new file with minimal imports, called imageCompare.worker.js. We then added a pre-compilation step with esbuild to compile this file into a bundle. We then spawn the worker using this generated file as a blob, and interact with it via the threads promise interface.
-
Is typescript better than JS?
Though, if you want to use one, do yourself a favor and give esbuild a try. It is orders of magnitude faster, at the cost of less flexibility.
-
How I Build and Deliver B2B SaaS Software as a 1.5* Person Indie Developer
Make my builds faster by forcing myself onto esbuild from the beginning, even if that makes delivering some capabilities harder (like web workers and service workers, Hot Module Replacement, and so on).
What are some alternatives?
swc - Rust-based platform for the Web
vite - Next generation frontend tooling. It's fast!
Rollup - Next-generation ES module bundler
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
parcel - The zero configuration build tool for the web. 📦🚀
Tailwind CSS - A utility-first CSS framework for rapid UI development.
import-maps - How to control the behavior of JavaScript imports
styled-components - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️ [Moved to: https://github.com/FredKSchott/snowpack]
terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+
ts-node - TypeScript execution and REPL for node.js
emotion - 👩🎤 CSS-in-JS library designed for high performance style composition