sindresorhus / gulp-autoprefixer

Prefix CSS
MIT License
694 stars 50 forks source link

Using // comments breaks autoprefixer #60

Closed woldner closed 8 years ago

woldner commented 8 years ago

Foundation use @import and @include and it would seem that using // before @include breaks gulp-autoprefixer as shown below:

CssSyntaxError in plugin 'gulp-autoprefixer' Message: /Users/Jwldnr/Sites/ex/sass/app.scss:10:1: Unknown word

@include foundation-typography; // @include foundation-button; ^ @include foundation-forms;

.scss markup:

@charset 'utf-8';

@import 'settings';
@import 'foundation';
@import 'motion-ui';

@include foundation-global-styles;
@include foundation-grid;
@include foundation-typography;
// @include foundation-button;

It should also be noted that using /* comments */ DOES WORK.

example:

@charset 'utf-8';

@import 'settings';
@import 'foundation';
@import 'motion-ui';

@include foundation-global-styles;
@include foundation-grid;
@include foundation-typography;
/* @include foundation-button; */
woldner commented 8 years ago

apparently using any // comment breaks..

woldner commented 8 years ago

actually its me who's an idiot: placing autoprefixer before running sass on src is what caused the error.