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

Autoprefixer is not working? #112

Closed
SafaElmali opened this issue Jul 27, 2019 · 2 comments
Closed

Autoprefixer is not working? #112

SafaElmali opened this issue Jul 27, 2019 · 2 comments

Comments

@SafaElmali
Copy link

I am trying to use autoprefixer but I think it doesn't work.

Here my sass file

.testing {
    display: flex;
    width: percentage(5/7);
}

Here is my gulp task

//Gulp Sass to CSS
gulp.task('sass', async function() {
    gulp.src('app/scss/styles.scss') 
        .pipe(sass()) 
        .pipe(autoprefixer()) 
        .pipe(gulp.dest('app/css'))
});

Output of CSS file

.testing {
  display: flex;
  width: 71.42857%; }

Shouldn't it be like the below?

.testing {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 71.42857%; 
}
@igoradamenko
Copy link

@SafaElmali, have you added browserslist config?

https://github.com/browserslist/browserslist#browserslist-

@CountryGuide
Copy link

Same problem for me
added "browserslist": ["last 2 versions"] in package.json

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

3 participants