Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override :local(.class) rules from external less file #564

Closed
serbanghita opened this issue Jun 28, 2017 · 11 comments
Closed

Override :local(.class) rules from external less file #564

serbanghita opened this issue Jun 28, 2017 · 11 comments

Comments

@serbanghita
Copy link

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

@TrySound
Copy link
Contributor

It's WIP
#562

@alexander-akait
Copy link
Member

@TrySound problem was solved?

@TrySound
Copy link
Contributor

It can't be solved without major release.
/cc @michael-ciniawsky

@alexander-akait
Copy link
Member

@TrySound it is solved in new version postcss-* plugins?

@TrySound
Copy link
Contributor

Maybe. However current idea is to combine all plugins in one to prevent compatibility problem between plugins.

@alexander-akait
Copy link
Member

@TrySound
Copy link
Contributor

@evilebottnawi Nope. It's just a pack. I mean full rewrite in single plugin. This can solve all problems.

@alexander-akait
Copy link
Member

@TrySound somebody can take care about this?

@TrySound
Copy link
Contributor

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
Copy link
Member

alexander-akait commented Feb 15, 2018

@TrySound Roadmap:

  1. Stability current style-loader/css-loader/postcss-loader with support css-modules and webpack@4
  2. 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.

@alexander-akait
Copy link
Member

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

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

No branches or pull requests

3 participants