E
E
Evgeny Koryakin2021-07-21 20:37:11
gulp.js
Evgeny Koryakin, 2021-07-21 20:37:11

How to correctly configure the assembly of SASS and CSS files according to the principle of ignoring by mask?

Hello!

In my project there are two folders dev and assets, I need to transfer already collected files from dev to assets.

Also, the dev folder has something like this:

dev
>images
>sass
>>blocks
>>modules
>>types
>>responsive
>>_vars.sass
>>_global.sass
>>style.sass (all styles are connected here)
>> desktop.sass
>css

I need it to collect files from the sass folder like *.sass > *.min.css ; but it ignored files like _*.sass . And the same with the *.css files from the css folder. Is this possible to implement?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-07-21
@Seasle

gulp.src(['*.sass', '!_*.sass'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question