F
F
Fedya2019-10-06 23:13:41
Sass
Fedya, 2019-10-06 23:13:41

Is it possible to merge media queries in sass?

Hello, how can I combine media queries in sass for gulp?
There is a gulp-group-css-media-queries plugin , but it works like this:

var gulp = require('gulp');
var gcmq = require('gulp-group-css-media-queries');
 
gulp.task('default', function () {
    gulp.src('src/style.css')
        .pipe(gcmq())
        .pipe(gulp.dest('dist'));
});

That is, it takes style.css and merges media in it into another style.css file.
And I need to somehow take one .scss file, merge media in it into another .scss file, and only then do it from .scss, .css ...
Is it possible to do something like that?

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