Skip to content

style-loader docs is missing #35

Description

@quebits

As I can see behaviour of the loader is tightly coupled with style-loader webpack's plugin.

For example:

index.css

.selector { /* */ }

index.css.d.ts

// This file is automatically generated.
// Please do not change this file!
interface CssExports {
  'selector': string
}
export const cssExports: CssExports;
export default cssExports;

index.js

import styles from './index.css'

console.log(styles['selector'])

Such access is only available with style-loader enabled. But there is no reference nor in documentation itself nor in example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions