Skip to content

Commit

Permalink
WP Scripts: Revert changes that inline CSS imports early in the build…
Browse files Browse the repository at this point in the history
… process (#66975)

* WP Scripts: Revert changes that inline CSS imports early in the build process

* Fix changelog entry

Co-authored-by: gziolo <[email protected]>
Co-authored-by: sirreal <[email protected]>
Co-authored-by: benoitchantre <[email protected]>
Co-authored-by: loxK <[email protected]>
  • Loading branch information
5 people committed Nov 18, 2024
1 parent 510540d commit fdbe988
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 34 deletions.
32 changes: 1 addition & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
"npm-run-all": "4.1.5",
"patch-package": "8.0.0",
"postcss": "8.4.38",
"postcss-import": "16.1.0",
"postcss-loader": "6.2.1",
"postcss-local-keyframes": "^0.0.2",
"prettier": "npm:[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fix

- Revert changes from [#61121](https://github.com/WordPress/gutenberg/pull/61121) that inlined CSS files imported from other CSS files before optimization in the `build` command.

## 30.5.0 (2024-11-16)

### Bug Fix
Expand Down
1 change: 0 additions & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const cssLoaders = [
plugins: isProduction
? [
...postcssPlugins,
require( 'postcss-import' ),
require( 'cssnano' )( {
// Provide a fallback configuration if there's not
// one explicitly available in the project.
Expand Down
1 change: 0 additions & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"npm-package-json-lint": "^6.4.0",
"npm-packlist": "^3.0.0",
"postcss": "^8.4.5",
"postcss-import": "^16.1.0",
"postcss-loader": "^6.2.1",
"prettier": "npm:[email protected]",
"puppeteer-core": "^23.1.0",
Expand Down

0 comments on commit fdbe988

Please sign in to comment.