Comments (4)
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.
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.
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.
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)
- Custom Prefixes HOT 3
- Document async API HOT 1
- Link to the Runner Guidelines somewhere in the readme HOT 4
- Sass + Autoprefixer + Sourcemaps HOT 2
- Update browserslist dependency to fix leaked global HOT 1
- border-image HOT 2
- values of properties accepting properties should be always output prefixed. HOT 3
- error when compiling mixin of polymer HOT 3
- Prefix not generated for linear-gradient for Safari 6 HOT 2
- 'transition: filter' does not generate prefixes HOT 2
- Add support for image-set() HOT 2
- display: -webkit-box breaks layout in newer versions of Safari HOT 4
- Not possible to use -webkit-line-clamp HOT 6
- Linear gradients formatted incorrectly HOT 1
- gulp autoprefixer returns invalid icon content of font-awesome HOT 1
- Syntax in docs not clear HOT 1
- autoprefixer doesn't remove -moz-flex-direction for and_ff >= 32 HOT 1
- Deprecation warnings with PostCSS 5.0 HOT 6
- CSS property "word-wrap" has been renamed to "overflow-wrap" HOT 1
- Deprecated Rules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoprefixer-core.