doabit / semantic-ui-sass

Semantic UI, converted to Sass and ready to drop into Rails & Compass.
MIT License
1.15k stars 192 forks source link

Slow refresh on any css change with @import "semantic-ui"; #86

Closed MainShayne233 closed 6 years ago

MainShayne233 commented 8 years ago

With:

@import "semantic-ui";

in my application.scss, I was getting incredibly slow refresh times anytime any CSS (not just semantic stuff) was touched.

After replacing with;

 *= require semantic-ui

the problem disappears.

doabit commented 8 years ago

@MainShayne233 Because @import "semantic-ui" will load many sass files, you can use guard and 'livereload' to speed up it.

ishouvik commented 8 years ago

Same issue here. I use guard and livereload and still it's very slow. Using Rails 5.

SocoolWON commented 8 years ago

Same issue here too.

pedantic-git commented 7 years ago

If you change 'sass-rails' to 'sassc-rails' in your Gemfile, you'll notice a huge performance improvement (sassc is the native version of Sass, which is much faster than the pure-Ruby version).

ishouvik commented 7 years ago

@pedantic-git Thank you very much for the suggestion. I will definitely try it out.

pgouv commented 7 years ago

sassc isnt always the solution. Does *= require semantic-ui have any side effects?