Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Fix build script with style.css files #23710

Merged
merged 2 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Allow the CSS, SVG, and Sass loaders to process files from node_modules directory.
- Improve the way licenses are validated with `check-licenses` by falling back to license files verification when the entry in `package.json` doesn't contain an allowed match ([#23550](https://github.com/WordPress/gutenberg/pull/23550)).
- Fix `build` script error when importing `style.css` files ([#23710](https://github.com/WordPress/gutenberg/pull/23710)).

## 12.0.0-rc.0 (2020-06-24)

Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/config/fix-style-webpack-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class FixStyleWebpackPlugin {
}
compilation.updateAsset( file, ( oldSource ) => {
return new ConcatSource(
oldSource,
'\n\n' + styleFileAsset.source.source()
styleFileAsset.source.source() + '\n\n',
oldSource
);
} );
}
Expand Down