How to use postcss-modules-scope - 9 common examples

To help you get started, we’ve selected a few postcss-modules-scope examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github css-modules / css-modules-require-hook / src / extractor.js View on Github external
: generateScopedName;
  } else {
    // small fallback
    scopedName = (local, filename) => Scope.generateScopedName(local, relative(context, filename));
  }

  const plugins = (use || [
    ...prepend,
    Values,
    mode
      ? new LocalByDefault({mode})
      : LocalByDefault,
    createImportedName
      ? new ExtractImports({createImportedName})
      : ExtractImports,
    new Scope({generateScopedName: scopedName}),
    ...append,
  ]).concat(new Parser({fetch})); // no pushing in order to avoid the possible mutations

  return postcss(plugins);
}
github Tencent / omi / packages / omi-cloud / scripts / taro-cli / src / weapp.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }
github NervJS / taro / packages / taro-cli / src / mini / compileStyle.ts View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }
github css-modules / css-modules-require-hook / src / extractor.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, relative(context, filename));
  }
github Tencent / omi / packages / omip / my-app / scripts / taro-cli / src / weapp.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }
github Tencent / omi / packages / omip / taro-cli / src / weapp.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }
github css-modules / css-modules-require-hook / src / index.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, relative(context, filename));
github NervJS / taro / packages / taro-cli / src / weapp.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }
github Tencent / omi / packages / cax-omip / scripts / taro-cli / src / weapp.js View on Github external
    scopedName = (local, filename) => Scope.generateScopedName(local, path.relative(context, filename))
  }

postcss-modules-scope

A CSS Modules transform to extract export statements from local-scope classes

ISC
Latest version published 16 days ago

Package Health Score

83 / 100
Full package analysis