Rails4.2 开发环境 Mac OSX 10.9
一旦修改 scss 内容,刷新到显示页面需要两秒?
.home {
background-color: red;
}
项目是新建的,就只有这么一个 homes.scss
有内容,一旦修改,刷新到完整显示页面需要两秒以上?
已经关闭
config.assets.digest = false
其中用到的 gem 有:
gem 'sass-rails', '~> 5.0'
gem "compass-rails", github: "Compass/compass-rails", branch: "master"
gem 'nprogress-rails'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
gem 'jquery-turbolinks'
gem 'bootstrap-sass', '~> 3.3.4'
之后发现,当去掉bootstrap
时便飞速了.....
@import "bootstrap-sprockets";
@import "bootstrap";
或者将application.scss
修改为application.css
,不过这相当于没用到bootstrap
了
有什么方法避免?