MCPcopy Create free account
hub / github.com/developit/microbundle / shouldCssModules

Function shouldCssModules

src/lib/css-modules.js:1–11  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1export function shouldCssModules(options) {
2 const passedInOption = processCssmodulesArgument(options);
3
4 // We should module when my-file.module.css or my-file.css
5 const moduleAllCss = passedInOption === true;
6
7 // We should module when my-file.module.css
8 const allowOnlySuffixModule = passedInOption === null;
9
10 return moduleAllCss || allowOnlySuffixModule;
11}
12
13export function cssModulesConfig(options) {
14 const passedInOption = processCssmodulesArgument(options);

Callers 2

createConfigFunction · 0.90
cssModulesConfigFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…