Skip to content

Commit 5562623

Browse files
committed
fix: upstream Draft.css was not getting inlined correctly during build
1 parent 23dc20f commit 5562623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ const draftJsDist = './node_modules/draft-js/dist';
1717
gulp.task('vendorDraftJsCss', function () {
1818
return gulp
1919
.src([`${draftJsDist}/Draft.css`])
20-
.pipe(rename('draft-js.component.css'))
2120
.pipe(gap.prependText('::ng-deep { '))
2221
.pipe(gap.prependText('/* This file is automatically generated from Draft.css upstream */'))
2322
.pipe(gap.prependText('/* Do not edit */'))
2423
.pipe(gap.appendText(' }'))
24+
.pipe(compileSass())
25+
.pipe(rename('draft-js.component.css'))
2526
.pipe(gulp.dest(`${src}/${lib}`));
2627
});
2728

0 commit comments

Comments
 (0)