Skip to content

Commit fdbe988

Browse files
gziolosirrealbenoitchantreloxK
committed
WP Scripts: Revert changes that inline CSS imports early in the build 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]>
1 parent 510540d commit fdbe988

File tree

5 files changed

+5
-34
lines changed

5 files changed

+5
-34
lines changed

package-lock.json

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"npm-run-all": "4.1.5",
129129
"patch-package": "8.0.0",
130130
"postcss": "8.4.38",
131-
"postcss-import": "16.1.0",
132131
"postcss-loader": "6.2.1",
133132
"postcss-local-keyframes": "^0.0.2",
134133
"prettier": "npm:[email protected]",

packages/scripts/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Bug Fix
6+
7+
- 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.
8+
59
## 30.5.0 (2024-11-16)
610

711
### Bug Fix

packages/scripts/config/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const cssLoaders = [
7575
plugins: isProduction
7676
? [
7777
...postcssPlugins,
78-
require( 'postcss-import' ),
7978
require( 'cssnano' )( {
8079
// Provide a fallback configuration if there's not
8180
// one explicitly available in the project.

packages/scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"npm-package-json-lint": "^6.4.0",
7575
"npm-packlist": "^3.0.0",
7676
"postcss": "^8.4.5",
77-
"postcss-import": "^16.1.0",
7877
"postcss-loader": "^6.2.1",
7978
"prettier": "npm:[email protected]",
8079
"puppeteer-core": "^23.1.0",

0 commit comments

Comments
 (0)