Quarkus
Web Bundler - Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Configuration property |
Type |
Default |
||
|---|---|---|---|---|
The directory in the resources which serves as root for the web assets Environment variable: |
string |
web |
||
The directory in the project root dir which contains web assets (relative to the project root) Environment variable: |
string |
web |
||
Files to ignore, specified relative to the web directory. Additional ignored files may be specified using the These entries are added to the default set of ignored files, so the defaults do not need to be repeated unless customization is required. Environment variable: |
list of string |
|||
The default set of ignored files, specified relative to the web directory. These defaults are intended to be extended via Entries may be prefixed with
Environment variable: |
list of string |
glob:.DS_Store, glob:Thumbs.db, glob:*.~ |
||
Enable or disable this entry point. Environment variable: |
boolean |
true |
||
Whether this entry point should produce its own output bundle. When This is useful when a directory is consumed by multiple other bundles but doesn’t need to be emitted as a standalone bundle. Environment variable: |
boolean |
true |
||
The directory for this entry point under the web root. Environment variable: |
string |
the bundle map key |
||
The key for this entry point (use the same key as another to bundle them together). Environment variable: |
string |
the bundle map key |
||
Indicate if this directory contains qute tags (as .html files) This is only available if the Quarkus Qute extension is in the project. Environment variable: |
boolean |
false |
||
When configured with an internal path (e.g. 'foo/bar'), Bundle files will be served on this path by Quarkus (prefixed by {quarkus.http.root-path}). When configured with an external URL (e.g. 'https://my.cdn.org/'), Bundle files will NOT be served by Quarkus and all resolved paths in the bundle and mapping will automatically point to this url (a CDN for example). Environment variable: |
string |
static/bundle |
||
Easily debug the bundling using chrome inspect (DevMode only) Environment variable: |
boolean |
false |
||
Sass/Scss plugin for the Web Bundler is enabled by default Environment variable: |
boolean |
true |
||
Enable or disable bundle splitting (https://esbuild.github.io/api/#splitting) Code shared between multiple entry points is split off into a separate shared file (chunk) that both entry points import Environment variable: |
boolean |
true |
||
Configure the file extensions using the js loader: https://esbuild.github.io/content-types/#javascript Environment variable: |
list of string |
js, cjs, mjs |
||
Configure the file extensions using the jsx loader: https://esbuild.github.io/content-types/#jsx Environment variable: |
list of string |
jsx |
||
Configure the file extensions using the tsx loader: https://esbuild.github.io/content-types/#jsx Environment variable: |
list of string |
tsx |
||
Configure the file extensions using the ts loader: https://esbuild.github.io/content-types/#typescript Environment variable: |
list of string |
ts, mts, cts |
||
Configure the file extensions using the css loader: https://esbuild.github.io/content-types/#css Environment variable: |
list of string |
css |
||
Configure the file extensions using the local-css loader: https://esbuild.github.io/content-types/#css Environment variable: |
list of string |
.module.css |
||
Configure the file extensions using the global-css loader: https://esbuild.github.io/content-types/#css Environment variable: |
list of string |
|||
Configure the file extensions using the file loader: https://esbuild.github.io/content-types/#file This loader will copy the file to the output directory and embed the file name into the bundle as a string. Environment variable: |
list of string |
aac, abw, arc, avif, avi, azw, bin, bmp, bz, bz2, cda, csv, yaml, yml, doc, docx, eot, epub, gz, gif, htm, html, ico, ics, jar, jpeg, jpg, jsonld, mid, midi, mp3, mp4, mpeg, mpkg, odp, ods, odt, oga, ogv, ogx, opus, otf, png, pdf, ppt, pptx, rar, rtf, svg, tar, tif, tiff, ttf, vsd, wav, weba, webm, webp, woff, woff2, xhtml, xls, xlsx, xml, xul, zip, 3gp, 3g2, 7z |
||
Configure the file extensions using the copy loader: https://esbuild.github.io/content-types/#copy Environment variable: |
list of string |
|||
Configure the file extensions using the base64 loader: https://esbuild.github.io/content-types/#base64 Environment variable: |
list of string |
|||
Configure the file extensions using the binary loader: https://esbuild.github.io/content-types/#binary Environment variable: |
list of string |
|||
Configure the file extensions using the dataurl loader: https://esbuild.github.io/content-types/#data-url Environment variable: |
list of string |
|||
Configure the file extensions using the empty loader: https://esbuild.github.io/content-types/#empty-file Environment variable: |
list of string |
|||
Configure the file extensions using the text loader: https://esbuild.github.io/content-types/#text Environment variable: |
list of string |
txt |
||
Configure the file extensions using the json loader: https://esbuild.github.io/content-types/#json Environment variable: |
list of string |
json |
||
This defines the list of external paths for esbuild (https://esbuild.github.io/api/#external). Instead of being bundled, the import will be preserved. Environment variable: |
list of string |
{quarkus.http.root-path}static/* |
||
Configuration for source-map generation (https://esbuild.github.io/api/#sourcemap) Environment variable: |
string |
linked |
||
List of environments for the bundle Environment variable: |
Map<String,String> |
|||
Disable this option to allow using runtime web dependencies. When a runtime scope web dependency is used, the dependency will be present in the target app and served at runtime. When a compile only scope web dependency is used, the dependency will only be used at build time and will not be present in the target app.
Environment variable: |
boolean |
true |
||
Enable or disable auto-import of web dependencies: all: auto-import all web dependencies (scripts and styles) styles: auto-import only styles web dependencies (scss, sass, css) none: disable auto-import ** Only direct dependencies are auto-imported, not transitive ones.** This is using the dependencies package.json (module, main, style, scss, saas fields) to detect the presence of source scripts and styles: - For all libraries enriching your html experience (htmx, hypercript, lazyload, …), you don’t necessarily need a script, auto-import is a comfort. - For styling libraries (Bootstrap, Semantic, …), you most likely want to always auto-import the styles. - For other web libraries (React, Vue, Lit, …), you will import everything manually in your app scripts. Environment variable: |
|
none |
||
Configure browser live-reload in dev-mode. With live-reload, changes in the web-app are automatically triggering a reload of the page in the browser. When changing styles, the changes is applied directly (without reload). Environment variable: |
boolean |
true |
||
Path to the node_modules parent directory (relative to the project root). Environment variable: |
string |
project root directory |
||
When enabled, Quarkus will create redirections from {bundlePath}/{entryPointKey}.{js,css} to the corresponding file containing the unique hash. This is useful for fixed external access to the bundle files (fullstack microservices). Environment variable: |
boolean |
false |
||
The default charset Environment variable: |
UTF-8 |