I have finally found the answer to why my Rails development environment is impossibly slow. It has to do with the way SASS @imports stylesheets over and over again each time I refresh my development views, even though the changes to the stylesheets might be minimal. My Cloud9 cloud development environment is also unable to keep up with all the constant compiling due to memory constraints and must be rebooted a couple of times per day.
See this post to see what the problem is
http://blog.teamtreehouse.com/tale-front-end-sanity-beware-sass-import
So I have decided to ditch SASS @imports in favor of Sprockets =requires and I have no idea how to migrate my scss file into a regular css sprockets file.
I have lots of stylesheets as I have purchases a theme. I have resources both in assets and in vendor/assets. Any help is appreciated.
My application.scss is as follows
// The organization of this CSS is heavily inspired by GitHub's CSS
// stylesheet guidelines.
//
// See: https://github.com/styleguide/css
//
// See Bootstrap's CSS at:
// https://github.com/twbs/bootstrap-sass/tree/master/assets/stylesheets/bootstrap
// or
// $ bundle show bootstrap-sass
//
// These both need to be imported before bootstrap:
@import 'globals/fonts';
@import 'globals/variables';
// --------------Bootstrap-----------------------------
@import 'bootstrap-sprockets';
@import 'bootstrap';
// --------------Font Awesome-----------------------------
@import 'font-awesome';
// --------------Social Share Buttons-----------------
@import "social-share-button";
// --------------Sweet Alert-----------------
@import 'sweetalert';
// --------------Global definitions--------------------
// For example (add your own!!):
@import 'globals/mixins';
// --------------Shared styles-------------------------
// Common base CSS modifications. For example:
@import 'shared/buttons';
@import 'shared/grid';
// --------------Components----------------------------
// Create your own and modify/extend Bootstrap's. For example:
@import 'components/panel';
// --------------Sections------------------------------
// Page-specific styles. These should *only* be used as a last
// resort if you really truly can't style your content more generally.
@import 'sections/profile_page';
// --------------Jango Base Theme------------------------------
@import 'components';
@import 'plugins';
@import 'default';
// --------------Jango Plugins------------------------------
@import 'animate/animate';
@import 'bootstrap-social/bootstrap-social';
@import 'cubeportfolio/css/cubeportfolio';
@import 'owl-carousel/owl.carousel';
@import 'owl-carousel/owl.theme';
@import 'owl-carousel/owl.transitions';
@import 'revo-slider/css/settings-ie8';
@import 'revo-slider/css/settings';
@import 'simple-line-icons/simple-line-icons';
@import 'slider-for-bootstrap/css/slider';
@import 'socicon/socicon';
@import 'fancybox';
// --------------Deseo Cumplido Custom CSS-------------------------
@import 'deseo_custom';
// --------------Datepicker Bootstrap 3------------------
@import 'bootstrap-datepicker';
@import 'bootstrap-datepicker3';
// --------------Bootstrap Slider------------------
@import 'bootstrap-slider';