Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to ignore specific directories or files #2173

Closed
neolefty opened this issue Oct 18, 2016 · 1 comment
Closed

Add ability to ignore specific directories or files #2173

neolefty opened this issue Oct 18, 2016 · 1 comment

Comments

@neolefty
Copy link

neolefty commented Oct 18, 2016

Useful for a large project with multiple targets. For example, we have multiple "brands" which all get built from the same codebase. It takes about 5 seconds to build each one. But during development, I typically only care about one of them, so I'd like to ignore the rest.

I can do that with --update:

$ sass --update brands/my_brand

My current solution is to prepend _ to the other brands' main .scss files: rename brands/foo/foo_branding.scss to brands/foo/_foo_branding.scss.

I would rather do something like:

$ sass --watch . --ignore brands/foo --ignore brands/bar

The directory structure is something like this:

  • app
    • a/_style.scss
    • b/_style.scss
    • c/_style.scss
  • brands
    • foo/foo_branding.scss (imports a/_style.scss, etc)
    • bar/bar_branding.scss
    • my_brand/my_brand_branding.scss
@nex3
Copy link
Contributor

nex3 commented Dec 11, 2016

This isn't a planned feature. You can always specify files individually if you want finer-grained control.

@nex3 nex3 closed this as completed Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants