Skip to content

Commit

Permalink
Don't add default-custom-properties styles to all compiled files (#28395
Browse files Browse the repository at this point in the history
)

* Don't add default-custom-properties styles to all compiled files

* Additional check for block-library

* Include block-library/src/editor.scss

* revert last commit
  • Loading branch information
aristath authored Jan 25, 2021
1 parent 12f1fff commit e100af0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/packages/build-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ const BUILD_TASK_BY_EXTENSION = {
]
// Editor styles should be excluded from the default CSS vars output.
.concat(
file.includes( 'editor-styles.scss' )
? []
: [ 'default-custom-properties' ]
file.includes( 'common.scss' ) ||
! file.includes( 'block-library' )
? [ 'default-custom-properties' ]
: []
)
.map( ( imported ) => `@import "${ imported }";` )
.join( ' ' ) + contents,
Expand Down

0 comments on commit e100af0

Please sign in to comment.