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

can we seperate module styles with mantra ? #80

Open
lyquocnam opened this issue Mar 11, 2016 · 3 comments
Open

can we seperate module styles with mantra ? #80

lyquocnam opened this issue Mar 11, 2016 · 3 comments

Comments

@lyquocnam
Copy link

i tried with mantra modules but not seperate.
i have 2 modules: admin module + home module.
i want home module has some styles and admin module has some other styles. And 2 modules import from 1 base styles.
how can i do that ?
currently, my home module loaded styles, others module have same styles. i'm sure in admin module i was none style files.

@dovuongnguyen
Copy link

In my opinion, you need create 2 projects and both using one mongo db. Bs mongo combine all style in one, so easy to conflict

@lyquocnam
Copy link
Author

that once idea but i think we have way better @@ i hope we will find it.

@lyquocnam
Copy link
Author

we can try:

.home-app {
   h1 { color: red; }
}

.admin-app {
  h1 { color: blue; }
}

but App will load all stylesheet right ?
if it is true, that's not good idea!
we can try any better ?

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

2 participants