Skip to content

BEM dashes break output css #244

Closed
Closed
@Galvo87

Description

@Galvo87

I am loading css like this

loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader')

and when using BEM naming convention with modifiers like menu__subitem--visible there seems to be a problem in generated css style.
Works fine if I rename it to menu__subitem__visible, so I guess it doesn't really like double dashes...
Any help?

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