posthtml
esbuild-plugin-pipe
Our great sponsors
posthtml | esbuild-plugin-pipe | |
---|---|---|
3 | 1 | |
2,924 | 11 | |
0.5% | - | |
2.1 | 0.0 | |
6 months ago | almost 3 years ago | |
JavaScript | JavaScript | |
MIT License | ISC 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.
posthtml
-
How to set base url for root-relative url?
A bundler running an html transformer like https://github.com/posthtml/posthtml could do this. Then the html would just be dependent on an environment variable to set your prefix conditions.
- esbuild – An extremely fast JavaScript bundler
-
Is there a utility to convert tailwind classes back to a CSS string?
This uses PostHTML to convert the tailwind classes into inline styles, but it could maybe be adapted to generate CSS files instead, but seriously, this largely defeats the purpose for using tailwind.
esbuild-plugin-pipe
-
esbuild – An extremely fast JavaScript bundler
ESBuild’s author and docs[1] are quite clear about its future scope:
> [… a list of features that are already done…]
> After that point, I will consider esbuild to be relatively complete. I'm planning for esbuild to reach a mostly stable state and then stop accumulating more features. This will involve saying "no" to requests for adding major features to esbuild itself. I don't think esbuild should become an all-in-one solution for all frontend needs. In particular, I want to avoid the pain and problems of the "webpack config" model where the underlying tool is too flexible and usability suffers.
That said, now quoting you…
> But we tried “compose tools in the Unix way” with grunt too, and that led to spaghetti scripts, unique to each project, that were hard to reason about.
In this respect, ESBuild’s firm stance has a major strength, and a major weakness:
- Strength: the Unix philosophy is easy to achieve, with esbuild-plugin-pipe[2]. There’s just one, simple plugin API, everything follows that same format
- Weakness: since ESBuild doesn’t expose its AST, plugins are often slow which can undermine the benefits of the tool
What are some alternatives?
tailbuild - A simple command to build a Tailwind CSS file for your project (with JIT compiling and watching)
rehype - HTML processor powered by plugins part of the @unifiedjs collective
parcel - The zero configuration build tool for the web. 📦🚀
esbuild-sass-plugin - esbuild plugin for sass
vite - Next generation frontend tooling. It's fast!
create-react-app-esbuild - Use esbuild in your create-react-app for faster compilation, development and tests
labelflow - The open platform for image labelling
esbuild - An extremely fast bundler for the web
swc - Rust-based platform for the Web
parse-xml - A fast, safe, compliant XML parser for Node.js and browsers.