blacklight_range_limit icon indicating copy to clipboard operation
blacklight_range_limit copied to clipboard

Sprockets require vs. SCSS @import

Open atz opened this issue 9 years ago • 1 comments

https://github.com/rails/sass-rails#important-note

Sprockets provides some directives that are placed inside of comments called require, require_tree, and require_self. DO NOT USE THEM IN YOUR SASS/SCSS FILES. They are very primitive and do not work well with Sass files. Instead, use Sass's native @import directive which sass-rails has customized to integrate with the conventions of your Rails projects.

The blacklight_range_limit generator will insert require statements in SCSS files. Apparently, this is to be avoided.

atz avatar Nov 02 '16 20:11 atz

👍 I think we've fixed this in blacklight, and it would be great if we fixed this everywhere.

cbeer avatar Nov 02 '16 21:11 cbeer