scss-bundle icon indicating copy to clipboard operation
scss-bundle copied to clipboard

Dedupe has no effect on includePaths

Open alan-agius4 opened this issue 7 years ago • 0 comments

Dedupe seems to have no effect on files that are resolved via includePaths

await new Bundler().Bundle("./_theme.scss", ["**/*.scss"], ["./my-foo-bar"]);

_theme.scss

@import "file1";
@import "file2";

file1.scss

@import "file-external";
file-1 {}

file2.scss

@import "file-external"; // this is resolved via includePaths
file-2 {}

file-external.scss

@mixin testMixin {}

output

@mixin testMixin () {}

file-1 {}

@mixin testMixin () {}

file-2 {}

alan-agius4 avatar Jan 30 '18 20:01 alan-agius4