verwenden, wenn bootstrap-sass die Dokumentation verwenden sagt:was application.scss aussehen sollte, wenn Bootstrap-Sass Ruby on Rails
alle entfernen * = require_self und * = require_tree. Aussagen von die Sass-Datei. Verwenden Sie stattdessen @import, um Sass-Dateien zu importieren.
meine aktuelle application.scss sieht aus wie
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*/
@import "bootstrap-sprockets";
@import "bootstrap";
@import "*";
das Problem ist, wenn ich Bootstrap-Arten außer Kraft setzen will, muss ich verwenden! Wichtig und ich kippe Zugang Bootstrap Mixins und Variablen
so was sollte application.scss aussehen wie bei bootstrap-sass
Was ist mit der Dokumentation für Bootstrap-sass er sagt ausdrücklich nicht * verwenden = erfordern Aussagen in application.scss, wenn Sie zugreifen möchten Mixins und Variablen Bootstrap – ChadTheDev
Von Ihnen 'meine aktuellen application.scss Frage aussieht ', Ich sehe, du benutzt' scss'. Aber wenn Sie 'sass' verwenden wollen, ist die Antwort in Ihrer Frage. 'Verwenden Sie stattdessen @import, um Sass-Dateien zu importieren. Ersetzen Sie einfach' * = require' durch '@ import'. Ich aktualisiere meine Antwort –