You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Override :local(.class) rules from external less file #564
I have a project using less 2.7.1 and css-loader 0.23.1.
webpack version is 2.3.2.
In my project I have a component with the name MyComponent incorporates a 3rd party component imported from node_modules, called WysiwygComponent. WysiwygComponent has the style rules in WysiwygComponent.less:
:local(.wrap) {
font-size: 18px;
}
this generates a CSS rule like WysiwygComponent--wrap--MhELi.
In MyComponent i have MyComponent.less file I want to override the WysiwygComponent--wrap by using something like: .MyComponent-wrap .WysiwygComponent-wrap { ... }.
Unfortunately I found no way to extend/override the CSS with :local(.wrap) syntax inside MyComponent.less
Stability current style-loader/css-loader/postcss-loader with support css-modules and webpack@4
Experimental branch with css in webpack
It is allow to easy migrate and improve stability loaders. Experimental branch can take a long time, we must give people the opportunity to work stably.
Activity
TrySound commentedon Jun 28, 2017
It's WIP
#562
alexander-akait commentedon Feb 15, 2018
@TrySound problem was solved?
TrySound commentedon Feb 15, 2018
It can't be solved without major release.
/cc @michael-ciniawsky
alexander-akait commentedon Feb 15, 2018
@TrySound it is solved in new version
postcss-*plugins?TrySound commentedon Feb 15, 2018
Maybe. However current idea is to combine all plugins in one to prevent compatibility problem between plugins.
alexander-akait commentedon Feb 15, 2018
@TrySound This https://github.com/css-modules/postcss-modules?
TrySound commentedon Feb 15, 2018
@evilebottnawi Nope. It's just a pack. I mean full rewrite in single plugin. This can solve all problems.
alexander-akait commentedon Feb 15, 2018
@TrySound somebody can take care about this?
TrySound commentedon Feb 15, 2018
We need to decide. Do we focus on webpack css type support, or do we finish this and fix everything with breaking change.
alexander-akait commentedon Feb 15, 2018
@TrySound Roadmap:
style-loader/css-loader/postcss-loaderwith support css-modules andwebpack@4cssin webpackIt is allow to easy migrate and improve stability loaders. Experimental branch can take a long time, we must give people the opportunity to work stably.
alexander-akait commentedon Dec 3, 2018
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!