borodean / postcss-assets

An asset manager for PostCSS
MIT License
537 stars 32 forks source link

SCSS Flags removed? #43

Closed norfali closed 8 years ago

norfali commented 8 years ago

Any SCSS files containing a !default or !global, postcss-assets seem to remove them. e.g.

$var: 100 !default;
$foo: "hello" !global;
$something: "bye" !important;

converts to:

$var: 100 ;
$foo: "hello" ;
$something: "bye" !important;

Simple gulp function as follows:

return gulp.src(path.join(contextObject.srcDir, 'style', '**', '*.{scss,css}'))
        .pipe($.postcss([require('postcss-assets')({
            loadPaths: contextObject.cssAssetPaths
        })], { syntax: require('postcss-scss') }))
...
}

The task runs fine and inline of assets work but I want to retain these flags so I am unsure whether this is a postcss-assets bug or there is an option somewhere.

Any ideas? Many thanks!

borodean commented 8 years ago

@norfali looks like it was somehow fixed in 4.0.0. Could you please verify?

norfali commented 8 years ago

Thanks - I can verify it works now and bug is fixed.