Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for CSS Modules

Hierarchy

  • ModulesOptions

Index

Properties

Optional exportGlobals

exportGlobals?: boolean

Export global classes

Optional failOnWrongOrder

failOnWrongOrder?: boolean

Fail on wrong order of composition

Optional generateScopedName

generateScopedName?: string | ((name: string, file: string, css: string) => string)

Placeholder or function for scoped name generation. Allowed blocks for placeholder:

  • [dir]: The directory name of the asset.
  • [name]: The file name of the asset excluding any extension.
  • [local]: The original value of the selector.
  • [hash(:<num>)]: A hash based on the name and content of the asset (with optional length).
default

"[name]_[local]__[hash:8]"

Optional mode

mode?: "local" | "global" | "pure"

Default mode for classes

default

"local"

Generated using TypeDoc