आपको केवल स्टैंड-अलोन प्रोजेक्ट पर कंपास की आवश्यकता है मणि और 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
स्रोत
2012-09-21 01:37:05