I installed the [object] .css.scss styleset in my resources / stylesheets directory to fit different views in my application. Each sheet includes a set of global style variable values in the first row:
@import "branding.css.scss";
And then it accesses the values of the variables when necessary ($ primaryColor, $ secondaryColor, etc.) throughout the library.
This is beautifully dry, but unfortunately Rails does not update the object stylesheets when I make changes to the values of the variables in the _branding.css.scss file. I need to touch each file before SCSS recompiles the object style library with the updated variable value.
This is a minor issue, but it undermines the workflow, especially when I continue to clear my browser cache trying to fix it: /
Is there a better way to organize variables?
Is there a way to force update?
source
share