Code Monkey home page Code Monkey logo

Comments (4)

ai avatar ai commented on June 11, 2024

You use Gulp wrong. In this task you create 2 async processors. So Autoprefixer didn’t start after Sass, Autoprefixer starts in parallel.

So in some cases (when Sass works longer) Autoprefixer doesn’t see anything in app/webroot/css/style.css.

from autoprefixer-core.

ai avatar ai commented on June 11, 2024

Correct task:

gulp.task('sass', function() {
        gulp.src('app/webroot/scss/**/*.scss')
        .pipe(sass({style: 'compressed'}))
        .pipe(autoprefixer({
          browsers: ['last 3 versions'],
          cascade: false
        }))
        .pipe(gulp.dest('app/webroot/css'));
});

from autoprefixer-core.

ai avatar ai commented on June 11, 2024

BTW, there is no need to disable cascade. Autoprefixer checks, does CSS in compressed. And if CSS was compressed, it miss cascade.

from autoprefixer-core.

emersonthis avatar emersonthis commented on June 11, 2024

Thanks!

In case anyone else stumbles on this thread, I also had to upgrade to a newer version of gulp-ruby-sass in order to DISABLE sourcemaps (which the earlier version generated automatically): https://github.com/sindresorhus/gulp-ruby-sass/tree/rw/1.0 https://github.com/sindresorhus/gulp-ruby-sass/tree/rw/1.0

On Jan 16, 2015, at 6:17 AM, Andrey Sitnik [email protected] wrote:

BTW, there is no need to disable cascade. Autoprefixer checks, does CSS in compressed. And if CSS was compressed, it miss cascade.


Reply to this email directly or view it on GitHub #25 (comment).

from autoprefixer-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.