diff --git a/Gruntfile.js b/Gruntfile.js
index 01e4f66..803ded4 100644
a
|
b
|
module.exports = function(grunt) { |
199 | 199 | 'wp-includes/js/mediaelement/wp-mediaelement.css' |
200 | 200 | ] |
201 | 201 | }, |
| 202 | dist: { |
| 203 | expand: true, |
| 204 | cwd: BUILD_DIR, |
| 205 | dest: BUILD_DIR, |
| 206 | ext: '.min.css', |
| 207 | src: [ |
| 208 | 'wp-includes/css/dist/*/*.css' |
| 209 | ] |
| 210 | }, |
202 | 211 | rtl: { |
203 | 212 | expand: true, |
204 | 213 | cwd: BUILD_DIR, |
… |
… |
module.exports = function(grunt) { |
939 | 948 | 'usebanner', |
940 | 949 | 'webpack:prod', |
941 | 950 | 'webpack:devProdTarget', |
| 951 | 'cssmin:dist', |
942 | 952 | 'jsvalidate:build' |
943 | 953 | ] ); |
944 | 954 | |
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 6cf83b6..a5bc88d 100644
a
|
b
|
function wp_default_styles( &$styles ) { |
1668 | 1668 | } |
1669 | 1669 | $styles->add( 'wp-editor-font', $fonts_url ); |
1670 | 1670 | |
1671 | | $styles->add( 'wp-block-library-theme', '/wp-includes/css/dist/block-library/theme.css' ); |
| 1671 | $styles->add( 'wp-block-library-theme', "/wp-includes/css/dist/block-library/theme$suffix.css" ); |
1672 | 1672 | $styles->add_data( 'wp-block-library-theme', 'rtl', 'replace' ); |
1673 | 1673 | |
1674 | 1674 | $styles->add( |
1675 | 1675 | 'wp-edit-blocks', |
1676 | | '/wp-includes/css/dist/block-library/editor.css', |
| 1676 | "/wp-includes/css/dist/block-library/editor$suffix.css", |
1677 | 1677 | array( |
1678 | 1678 | 'wp-components', |
1679 | 1679 | 'wp-editor', |
… |
… |
function wp_default_styles( &$styles ) { |
1695 | 1695 | |
1696 | 1696 | foreach ( $package_styles as $package => $dependencies ) { |
1697 | 1697 | $handle = 'wp-' . $package; |
1698 | | $path = '/wp-includes/css/dist/' . $package . '/style.css'; |
| 1698 | $path = "/wp-includes/css/dist/$package/style$suffix.css"; |
1699 | 1699 | |
1700 | 1700 | $styles->add( $handle, $path, $dependencies ); |
1701 | 1701 | $styles->add_data( $handle, 'rtl', 'replace' ); |