Home > @lynx-js/rspeedy > Filename > css
The name of the CSS files.
Signature:
css?: Rspack.CssFilename | undefined;
Default values:
'[name].css'
import { defineConfig } from '@lynx-js/rspeedy' export default defineConfig({ output: { filename: { css: (pathData, assetInfo) => { console.log(pathData); // You can check the contents of pathData here if (pathData.chunk?.name === 'index') { return isProd ? '[name].[contenthash:8].css' : '[name].css'; } return '/some-path/[name].css'; }, }, }, })