mantrajs / mantra-sample-blog-app

A sample blog app built with Mantra
http://mantra-sample-blog-app.herokuapp.com/
MIT License
296 stars 104 forks source link

can we seperate module styles with mantra ? #80

Open lyquocnam opened 8 years ago

lyquocnam commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

lyquocnam commented 8 years ago

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 ?