Skip to content

Commit 499f514

Browse files
dd32adamziel
authored andcommitted
Keep the theme style.css files, as they're read by PHP
1 parent a0da826 commit 499f514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wasm-build/wordpress-data/prepare-wordpress.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ find ./ -type f -name '*.woff' | xargs rm -r 2> /dev/null
4949
find ./ -type f -name '*.wof2' | xargs rm -r 2> /dev/null
5050
find ./ -type f -name '*.jpeg' | xargs rm -r 2> /dev/null
5151
find ./ -type f -name '*.jpg' | xargs rm -r 2> /dev/null
52-
find ./ -type f -name '*.css' | xargs rm 2> /dev/null
52+
# Keep the theme style.css files, as they're read by PHP
53+
find ./ -type f -name '*.css' -not -path '*/wp-content/themes/*/style.css' | xargs rm 2> /dev/null
5354
find ./ -type f -name '*.js' | xargs rm 2> /dev/null
5455

5556
# Remove whitespace from PHP files

0 commit comments

Comments
 (0)