Optional
assetMove CSS styles to `styles/style.css` instead of the default `css/[entrypoint-name].css`:
(chunkInfo) => chunkInfo.name.endsWith('.css') ? 'styles/style.css' : undefined
Optional
configVite config to override or extend the base config
Optional
coreJSEnable and adjust settings for core-js polyfills
By default disabled as Nextcloud core already includes the core-js/stable
polyfills globally
Optional
emptyWhether to empty the output directory (js/
)
true
Optional
inlineCSSInject all styles inside the javascript bundle instead of emitting a .css file
false
Optional
minifyWhether to minify the output
isProduction Minify on production, do not on development
Optional
nodeInject polyfills for node packages
By default all node core modules are polyfilled, including prefixed with node:
protocol
{protocolImports: true}
Optional
replaceStrings to replace within your code
Optional
thirdLocation of license summary file of third party dependencies
Pass false
to disable generating a license file.
'js/vendor.LICENSE.txt'
Customize the asset file names. Similar to
output.assetFileNames
in rollup config, but if returns undefined, then this config defaults is be used.