Skip to content

Commit

Permalink
fix: upstream Draft.css was not getting inlined correctly during build
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Jan 25, 2018
1 parent 23dc20f commit 5562623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ const draftJsDist = './node_modules/draft-js/dist';
gulp.task('vendorDraftJsCss', function () {
return gulp
.src([`${draftJsDist}/Draft.css`])
.pipe(rename('draft-js.component.css'))
.pipe(gap.prependText('::ng-deep { '))
.pipe(gap.prependText('/* This file is automatically generated from Draft.css upstream */'))
.pipe(gap.prependText('/* Do not edit */'))
.pipe(gap.appendText(' }'))
.pipe(compileSass())
.pipe(rename('draft-js.component.css'))
.pipe(gulp.dest(`${src}/${lib}`));
});

Expand Down

0 comments on commit 5562623

Please sign in to comment.