Skip to content

Commit

Permalink
Fix Windows-unfriendly theme.scss loader rule
Browse files Browse the repository at this point in the history
The webpack module loader rule for theme.scss files contained a
unix-style path separator that resulted in theme.scss not being matched
with the ExtractTextPlugin and processed by SASS. Instead, it was being
treated as a JS import, and our stub `core-blocks/separator/theme.scss`
file happens to also parse as JS.  This meant there was no build error
but also no `build/core-blocks/theme.css` file. This commit simply
removes the offending separator because it is unnecessary.
  • Loading branch information
brandonpayton authored Jun 1, 2018
1 parent 0a6ea4c commit 20293c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const config = {
use: editBlocksCSSPlugin.extract( extractConfig ),
},
{
test: /\/theme\.s?css$/,
test: /theme\.s?css$/,
include: [
/core-blocks/,
],
Expand Down

0 comments on commit 20293c4

Please sign in to comment.