Closed norfali closed 8 years ago
Any SCSS files containing a !default or !global, postcss-assets seem to remove them. e.g.
!default
!global
$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!
@norfali looks like it was somehow fixed in 4.0.0. Could you please verify?
Thanks - I can verify it works now and bug is fixed.
Any SCSS files containing a
!default
or!global
, postcss-assets seem to remove them. e.g.converts to:
Simple gulp function as follows:
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!