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
  • Loading branch information
gziolo committed Nov 18, 2024
1 parent 92199e1 commit 2a4d301
Show file tree
Hide file tree
Showing 5 changed files with 2 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
1 change: 1 addition & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Bug Fix

- Make `start` script more resilient for developer errors ([#66752](https://github.com/WordPress/gutenberg/pull/66752)).
- 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.4.0 (2024-10-30)

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 2a4d301

Please sign in to comment.