N
N
Nastyuuuushka2016-07-25 11:52:50
css
Nastyuuuushka, 2016-07-25 11:52:50

How to make support for multiple browsers? I only managed to do -webkit-, what to do with ie, Mozilla ??

var gulp = require('gulp'),
    concatCSS = require('gulp-concat-css'),
    rename = require('gulp-rename'),
    prefix = require('gulp-autoprefixer'),
    minifyCSS = require('gulp-minify-css');

gulp.task('default', function() {
    gulp.src('stylus/*.css')
        .pipe(minifyCSS())
        .pipe(prefix('last 3 versions', '>5%', 'ie9'))
        .pipe(concatCSS("bundle.css"))
        .pipe(rename('bundle.min.css'))
        .pipe(gulp.dest('app/css/'));
});

gulp.task('watch', function() {
    gulp.watch('stylus/*.css', ['default'])
})

I write in .styl, then .css is created in the folder, which is already transformed into .min.css in the app folder, but the auto-prefixer does not work, the same thing appears in .min.css without the necessary prefixes

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay Semenov, 2016-07-25
@nickola105

as I have a working version
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question