Skip to content

Commit

Permalink
Import CSS files before optimization
Browse files Browse the repository at this point in the history
Closes #61112.
  • Loading branch information
benoitchantre committed Apr 25, 2024
1 parent 2012a36 commit 405718b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
61 changes: 61 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -228,6 +228,7 @@
"npm-run-all": "4.1.5",
"patch-package": "8.0.0",
"postcss": "8.4.16",
"postcss-import": "16.1.0",
"postcss-loader": "6.2.1",
"prettier": "npm:wp-prettier@3.0.3",
"progress": "2.0.3",
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/config/webpack.config.js
Expand Up @@ -96,6 +96,7 @@ 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: 1 addition & 0 deletions packages/scripts/package.json
Expand Up @@ -73,6 +73,7 @@
"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:wp-prettier@3.0.3",
"puppeteer-core": "^13.2.0",
Expand Down

0 comments on commit 405718b

Please sign in to comment.