linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.33k stars 152 forks source link

Detect generated class name conflicts #498

Closed timlindvall closed 3 years ago

timlindvall commented 3 years ago

Resolves #496.

Changes

Testing Done

All testing done in the v2 ember-app fixture.

Sample Error Message

Build Error (CSSBlocksStylesPostprocessorPlugin)

Your application CSS contains classes that are also generated by the CSS optimizer. This can cause style conflicts between your application's classes and those generated by CSS Blocks.
To resolve this conflict, you should add any short class names in non-block CSS (~5 characters or less) to the list of disallowed classes in your build configuration.
(You can do this by setting css-blocks.appClasses to an array of disallowed classes in ember-cli-build.js.)

Conflicting classes:
i