hail2u/node-css-mqpacker

Doesn't working

Alexufo opened this issue · 1 comments

Doesn't working.
gulp.task('postcss', function () {

        var plugins = [
            require('postcss-import'),
            require('postcss-nested'),
            require('postcss-simple-vars'),
            require('postcss-mixins')({
                mixinsDir: path.join(__dirname, '/src/css/mixins/')
            }),
            rfs(rfs_options),
            require("@hail2u/css-mqpacker")(),
       ];
    
        return gulp.src("./src/css/style.scss")
            .pipe(postcss(plugins, {
                parser: require('postcss-scss')
            }))
            .pipe(gulp.dest('./public_html_src/'));
    });

I don't see any changes in the file. If I will replace require("@hail2u/css-mqpacker") to another package require("postcss-sort-media-queries") it works at the same config.

If a postcss-sort-media-queries plugin works as expected, use it.