Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

SCSS Flags removed? #43

Closed
norfali opened this issue Jan 25, 2016 · 2 comments
Closed

SCSS Flags removed? #43

norfali opened this issue Jan 25, 2016 · 2 comments
Labels

Comments

@norfali
Copy link

norfali commented Jan 25, 2016

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 borodean added the bug label Jan 30, 2016
@borodean
Copy link
Owner

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

@norfali
Copy link
Author

norfali commented Feb 1, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants