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

Allow to configure loaders #67

Closed ia3andy closed 11 months ago

ia3andy commented 11 months ago

Something like this would be the default:

quarkus.web-bundler.loaders.JS=.js,.cjs,.mjs
quarkus.web-bundler.loaders.TS=.ts,.mts,.cts
quarkus.web-bundler.loaders.TSX=.tsx
quarkus.web-bundler.loaders.JSX=.jsx
quarkus.web-bundler.loaders.CSS=.css,.scss
quarkus.web-bundler.loaders.JSON=.json
quarkus.web-bundler.loaders.FILE=.svg,.gif,.png,.jpg,.woff,.woff2,ttf,.eot
quarkus.web-bundler.loaders.EMPTY=
quarkus.web-bundler.loaders.TEXT=.txt
quarkus.web-bundler.loaders.DATAURL=
quarkus.web-bundler.loaders.BINARY=
quarkus.web-bundler.loaders.BASE64=
quarkus.web-bundler.loaders.COPY=

A check would make sure that each extensions have only one loader and start with dot.

See https://esbuild.github.io/content-types/

ia3andy commented 11 months ago

@edewit do you want this one?

edewit commented 11 months ago

Sure I can take a look

ia3andy commented 11 months ago

Done: https://docs.quarkiverse.io/quarkus-web-bundler/dev/advanced-guides.html#loaders

ia3andy commented 3 months ago

@all-contributors please add @edewit for code

allcontributors[bot] commented 3 months ago

@ia3andy

I've put up a pull request to add @edewit! :tada: