Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
rails scss资产被导入两次_Css_Ruby On Rails_Twitter Bootstrap_Sass_Sprockets - Fatal编程技术网

rails scss资产被导入两次

rails scss资产被导入两次,css,ruby-on-rails,twitter-bootstrap,sass,sprockets,Css,Ruby On Rails,Twitter Bootstrap,Sass,Sprockets,我正在开发一个我没有编写的Rails应用程序,我意识到编译后的样式表包含两次引导CSS。这两个屏幕截图来自同一个文件,即编译的/assets/application-2d2c43940p[…]css /* * 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

我正在开发一个我没有编写的Rails应用程序,我意识到编译后的样式表包含两次引导CSS。这两个屏幕截图来自同一个文件,即编译的/assets/application-2d2c43940p[…]css

/*
 * 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 styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *'
 *= require normalize
 *= require jquery.tagit
 *= require tagit.ui-zendesk
 *= require bootstrap-datepicker
 *= require_tree .
 *= require_self
 */
/*!
 * Bootstrap v3.3.5 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/* line 9, /home/michael/.rvm/gems/ruby-2.2.2@gradready/gems/bootstrap-sass-3.3.5.1/assets/stylesheets/bootstrap/_normalize.scss */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

请注意,require语句在第二份副本中被删除。但是,如果我搜索引导,它只在application.scss文件中出现一次,如下图所示。为什么会发生这种情况

/*
 * 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 styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *'
 *= require normalize
 *= require jquery.tagit
 *= require tagit.ui-zendesk
 *= require bootstrap-datepicker
 *= require_tree .
 *= require_self
 */
@import "bootstrap-sprockets";
@import "bootstrap";
@import "font-awesome";
@import 'chosen/chosen.min';
@import "video-js";
@import "videojs-resolution-selector/video-quality-selector";
@import 'bootstrap-datetimepicker';
@import 'jquery.fileupload';
@import 'jquery.fileupload-ui';

// COLORS
$grGreen: #009348;

此外,我的application.scss(即我自己编写的代码)只出现一次。似乎只有一些库被导入了两次。

如果你有
*=require\u tree.
并且你的前任是一个懒惰的oaf,刚刚将所有库下载到应用程序/资产中,它们将被添加两次…引导程序似乎不在应用程序/资产、供应商/资产或库/资产中。这很奇怪。
/*
 * 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 styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *'
 *= require normalize
 *= require jquery.tagit
 *= require tagit.ui-zendesk
 *= require bootstrap-datepicker
 *= require_tree .
 *= require_self
 */
@import "bootstrap-sprockets";
@import "bootstrap";
@import "font-awesome";
@import 'chosen/chosen.min';
@import "video-js";
@import "videojs-resolution-selector/video-quality-selector";
@import 'bootstrap-datetimepicker';
@import 'jquery.fileupload';
@import 'jquery.fileupload-ui';

// COLORS
$grGreen: #009348;