Skip to content

Commit 2f5aacb

Browse files
authored
fix(build): exclusion of table component when tab is active
If there is still a table.css present in dist/components, it will be included in semantic.css. This is caused by a collision in the globbing mechanism: 'tab' is included in the word 'table', so table.css is included in the package task. Fixes #2118
1 parent 5f0c9f1 commit 2f5aacb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tasks/build/css.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ function pack(type, compress) {
9999
concatenatedCSS = compress ? filenames.concatenatedMinifiedCSS : filenames.concatenatedCSS;
100100
}
101101

102-
return gulp.src(output.uncompressed + '/**/' + globs.components + ignoredGlobs)
102+
let src = output.uncompressed + '/**/' + globs.components + ignoredGlobs;
103+
if (globs.components.indexOf('table') < 0 && globs.components.indexOf('tab') > 0) {
104+
src = [src, '!' + output.uncompressed + '/**/table.css'];
105+
}
106+
107+
return gulp.src(src)
103108
.pipe(plumber())
104109
.pipe(dedupe())
105110
.pipe(replace(assets.uncompressed, assets.packaged))

0 commit comments

Comments
 (0)