Home > @lynx-js/rspeedy > CssLoader
CssLoader interface
The CssLoader controls the options of css-loader.
Signature:
Remarks
The default option is as follow:
Home > @lynx-js/rspeedy > CssLoader
The CssLoader controls the options of css-loader.
Signature:
export interface CssLoader The default option is as follow:
const defaultOptions = {
modules: {
auto: true,
namedExport: false,
exportLocalsConvention: 'camelCase',
localIdentName: output.cssModules.localIdentName,
},
sourceMap: output.sourceMap,
// importLoaders is `1` when compiling css files, and is `2` when compiling sass/less files
importLoaders: 1 || 2,
};|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
0 | 1 | 2 | undefined |
(Optional) The option | ||
|
boolean | 'local' | 'global' | 'pure' | 'icss' | CssLoaderModules | undefined |
(Optional) The cssLoader.modules option enables/disables the CSS Modules specification and setup basic behavior. |

