1

Is there a configuration option that will enable me to output scss files located in several directories? I.E.:

foo / foo.scss
bar / bar.scss
baz / baz.scss

into a single output directory

css / foo.css
      bar.css
      baz.css
2
  • 1
    Have you tried add_import_path in your config.rb? compass-style.org/help/tutorials/configuration-reference Commented Jun 6, 2013 at 15:54
  • I think that just adds to the list of available import locations - what I'm looking for is to control the output directories Commented Jun 6, 2013 at 20:19

1 Answer 1

1

Consider creating a sass directory with dummy files for each of your components:

project/
  css/
    foo.css
    bar.css
    baz.css
  modules/
    foo/
      foo.scss
    bar/
      bar.scss
    baz/
      baz.scss
  sass/
    foo.scss
    bar.scss
    baz.scss

Each dummy file should import the corresponding component.

sass/foo.scss:

@import "../modules/foo/foo.scss";

When you have all dummy files set up, run sass --update sass:css from the root of your project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.