I
I
iBird Rose2017-01-18 08:47:16
css
iBird Rose, 2017-01-18 08:47:16

How to ignore files with underscores in sublime sass?

In general, there is a sass file compiler for sublime - https://packagecontrol.io/packages/SASS%20Build
also a plugin for launching this compiler - https://github.com/alexnj/SublimeOnSaveBuild
the problem is that it works on all sass files or scss. and I need to make it ignore files like _source.scss
googled this setting for SublimeOnSaveBuild:

{
    "filename_filter": "(/|\\\\|^)(?!_)(\\w+)\\.(css|js|sass|less|scss)$",
    "build_on_save": 1
}

but it doesn't work.
ps for me, these settings do not work at all for the plugin. because even when I set "build_on_save": 0 or removed these lines altogether, it continued to run the build by ctrl + s
in general, it is necessary that the compiler for sass ignore files with underscores.
ps gulp and so on do not offer. needed by the editor.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2017-01-19
@iiiBird

figured it out. somehow Makar the line "filename_filter":ended up in Preferences.sublime-settings and therefore, whatever you write in SublimeOnSaveBuild.sublime-settings - did not work.

Андрей Б., 2017-01-18
@andykov

Попробуй так

"filename_filter": "^(?<!_)[a-z-]*\.(sass|less|scss)$"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question