mantra-sample-blog-app icon indicating copy to clipboard operation
mantra-sample-blog-app copied to clipboard

can we seperate module styles with mantra ?

Open lyquocnam opened this issue 8 years ago • 3 comments

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.

lyquocnam avatar Mar 11 '16 18:03 lyquocnam

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

dovuongnguyen avatar Mar 12 '16 14:03 dovuongnguyen

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

lyquocnam avatar Mar 12 '16 14:03 lyquocnam

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 ?

lyquocnam avatar Mar 14 '16 02:03 lyquocnam