搜索文档
Home > @lynx-js/rspeedy > Tools > cssLoader
The CssLoader controls the options of css-loader.
Signature:
cssLoader?: CssLoader | undefined;
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, };