S
S
Sergey Ivanov2017-09-14 17:02:44
Regular Expressions
Sergey Ivanov, 2017-09-14 17:02:44

What globbing pattern should be used to recursively find all sass files except those in a directory?

The frontend directory structure is as follows:

.
├── app
│   ├── js
│   ├── pug
│   ├── sass
│   │   ├── vendor
│   │   │   ├── bootstrap.scss
│   │   │   └── font-awesome.scss
│   │   └── main.scss

During the build of the project, it is necessary to separately process custom sass files and sass files of third-party libraries located in the sass/vendor/ directory . In both cases, I want to achieve support for recursive processing (so that the nesting of directories can be any).
An unsuccessful attempt was made to apply the following pattern:
app/sass/!(vendor)/**/*.+(scss|sass)
Where did I go wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question