Skip to content

Importing css in typescript/webpack project #203

Open
@stefaneg

Description

@stefaneg

The example provided does not work out of the box with my typescript/webpack setup. My guess is that is is because react-dropdown/style.css is resolved to the d.ts file in the package file, so it is never processed by css-loader. My solution is to place an explicit style loader import like this:

import '!style-loader!css-loader!react-dropdown/style.css'

You might want to mention this in the documentation. If there is a better way, then mention that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions