Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not prefixing #105

Open
alexandar87 opened this issue Jun 7, 2018 · 1 comment
Open

Not prefixing #105

alexandar87 opened this issue Jun 7, 2018 · 1 comment

Comments

@alexandar87
Copy link

alexandar87 commented Jun 7, 2018

This is my gulpfile.js:

var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
var sass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var cssmin = require('gulp-cssmin');
var concat = require('gulp-concat');
var imagemin = require('gulp-imagemin');
var rename = require('gulp-rename');
var pngcrush = require('imagemin-pngcrush');
var svgstore = require('gulp-svgstore');
var svgmin = require('gulp-svgmin');

// Compilation: SCSS into CSS
gulp.task('scss', function () {
  return gulp.src('./scss/style.scss')
    .pipe(prefix())
    .pipe(sass())
    .pipe(gulp.dest('./dist/css/'))
    .pipe(cssmin())
    .pipe(rename({suffix: '.min'}))
    .pipe(gulp.dest('./dist/css/'));
});
@dmitrycy
Copy link

I had the same problem, resolved it by adding a settings object into the autoprefixer, like so:

.pipe(prefix({
  browsers: ['last 2 versions'],
  cascade: false
}));

Give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants