为现有的sass项目添加指南针?

Con*_*nor 6 css sass compass-sass

我有一个使用vanilla的现有项目,SASS我想为它添加Compass.我以前使用过Compass,但只使用了compass create命令.

我正在寻找一种能够通过导入与其相关的SCSS文件来利用罗盘功能的方法,而不必遵守它给出的结构.

我怎样才能做到这一点?

Mir*_*nne 12

在独立项目上你需要的所有指南针就是宝石和config.rb.我将配置文件从一个项目复制/粘贴到另一个项目,然后调整插件要求和文件结构等设置.您可以使用任何您喜欢的结构,只要您在配置文件中进行设置即可.

以下是我当前项目中的一个示例:

# Compass CSS framework config file

require 'susy'
require 'modular-scale'
require 'sassy-buttons'
require 'breakpoint'
require 'compass-css-arrow'
require 'rgbapng'
# Require any additional compass plugins here.

project_type = :stand_alone
# Set this to the root of your project when deployed:
http_path = "/"
sass_dir = "sass"
css_dir = "static/css"
images_dir = "static/images"
fonts_dir = "static/fonts"
javascripts_dir = "static/js"
line_comments = false
preferred_syntax = :scss
output_style = :expanded
relative_assets = true
Run Code Online (Sandbox Code Playgroud)