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

Impossible to use plugin once again if global mixin used #2

Open
BonBonSlick opened this issue Jan 13, 2020 · 0 comments
Open

Impossible to use plugin once again if global mixin used #2

BonBonSlick opened this issue Jan 13, 2020 · 0 comments

Comments

@BonBonSlick
Copy link

BonBonSlick commented Jan 13, 2020

Declare global css styles, requried everywhere

Vue.mixin(CSSModules({
  injectAttr: 'mixinClass',
  styles:     { ...stylesFonts, ...stylesCommon },
}),);

Next time we try mixin CSSModules, it rewrites the previous one. Global styles are no available anymore!

So we have to do layout CSS import in every child component, eg PublicLayout (with public CSS eg publicLayout.css) import (publicLayout.css), child component PublicPostPage import (publicLayout.css) etc.
And then apply as docs say

:class="[$style.className, $style.classname...]"

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

No branches or pull requests

1 participant