Optional
appOptional
assetCustomize the asset file names.
Similar to output.assetFileNames
in rollup config,
but if returns undefined, then this config defaults is be used.
Optional
assetsPrefix to use for assets and chunks
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
createWhen not using inline css and using cssCodeSplit
this option allows to create
one CSS entry file for each JS entry point instead of only one for each JS entry point with styles.
Optional
emptyWhether to empty the 'js' directory
Pass false
to disable clearing the directory,
it is also possible to pass options to the plugin.
Optional
extractExtract license information from built assets into .license
files
This is needed to be REUSE complient
Optional
inlineCSSInject all styles inside the javascript bundle instead of emitting a .css file
Optional
minifyWhether to minify the output
Optional
nodeInject polyfills for node packages
By default all node core modules are polyfilled, including prefixed with node:
protocol
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.
Override the
appName
, by default the name from theappinfo/info.xml
and if not found the name frompackage.json
is used. But if that name differs from the app id used for the Nextcloud app you need to override it.