在多个Compass项目中加载全局SASS文件 [英] Loading global SASS files in multiple Compass projects
问题描述
我想创建一个SASS文件的目录,多个Compass项目将访问它。此目录将包含许多SASS文件,用于具有类似样式(表单元素,修饰符,重置等)的公共元素,我想在多个项目中访问和使用它们。
I'd like to create a directory of SASS files that multiple Compass projects will access. This directory would contain a number of SASS files for common elements with similar styles (form elements, clearfixes, resets, etc.) that I'd like to access and use across multiple projects.
如何将这个单一的全局SASS文件夹包含在多个项目中?
How can I include this single global SASS folder in multiple projects?
推荐答案
Compass的创建者Chris Eppstein,有一个视频介绍了如何执行此操作:
https://vimeo.com/13804978
Chris Eppstein, the creator of Compass, has a video describing exactly how to do that here: https://vimeo.com/13804978
基本上,您将在您的一个项目中创建一个框架,然后构建任何未来的其他项目(或追溯地添加一行到旧项目的配置)以包括该框架。
Essentially, you'll create a framework in one of your projects, and then build any future other projects (or retroactively add a line to older projects' configurations) to include that framework.
这篇关于在多个Compass项目中加载全局SASS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!