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

Compile underscored files on save #37

Open
fretelweb opened this issue Sep 29, 2017 · 1 comment
Open

Compile underscored files on save #37

fretelweb opened this issue Sep 29, 2017 · 1 comment

Comments

@fretelweb
Copy link

I dont want to compile the underscored files on save is it possible? thanxs

@najamelan
Copy link

najamelan commented Jul 27, 2021

I ended up wrapping my sass compile with a little script:

#!/usr/bin/env ruby

file = ARGV[3];

puts file;

/.*\/_.*\.scss/ =~ file and exit 0

Process.exec "/home/user/.cargo/bin/grass", *ARGV

I modified the build settings from sass-build so it always passes the --style argument, so the filename is in the same place as with the compressed version. You can also make the wrapper script a bit smarter...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants