quarkiverse / quarkus-web-bundler

Create full-stack web apps quickly and easily with this Quarkus extension. It offers zero-configuration bundling for your web app scripts (JS, JSX, TS, TSX), dependencies (jQuery, React, htmx, etc.), and styles (CSS, SCSS, SASS).
Apache License 2.0
16 stars 9 forks source link

Add tailwind css library and plugin support. #90

Closed monjurmorshed793 closed 10 months ago

monjurmorshed793 commented 10 months ago

Currently the documentation is not so helpful, that's why I have added the issue here. Tailwind css requires nodejs, also a config file is needed, so is it possible to add it using web-bundler? Also request for making the documentation more helpful by adding different sections for mostly used libraries (like react, angular or others).

melloware commented 10 months ago

@monjurmorshed793 i think you might want Quarkus Quinoa which is for NodeJS and already has instructions for using with Angular, React etc.

https://github.com/quarkiverse/quarkus-quinoa

ia3andy commented 10 months ago

As @melloware said, there is a decision point to choose between Quinoa and the Web Bundler:

Note that it is possible (and fairly easy) to switch from one to the other, the resulting app is the same.

In your case, I am having a look at the Tailwind css to see if it can fit the Web Bundler and I'll let you know.

Regarding React, it works for light web-app: https://github.com/ia3andy/quarkus-bundler-react. I'll try to create an example app with Angular.

ia3andy commented 10 months ago

Regarding Tailwind CSS, since it requires a esbuild plugin to work, it is currently not possible to use it with the esbuild CLI (used by the web-bundler), we are looking into allowing plugins (https://github.com/evanw/esbuild/issues/3327).

So Quinoa is your best option for now :)