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.
Move CSS styles to `styles/style.css` instead of the default `css/[entrypoint-name].css`:
(chunkInfo) => chunkInfo.name.endsWith('.css') ? 'styles/style.css' : undefined
Optional
assetsPrefix to use for assets and chunks
'{appName}-'
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.
false
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'
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.