Skip to content

Commit 2f2d67f

Browse files
retlehsLog1x
andauthored
✨ Use @roots/vite-plugin (roots#3231)
Co-authored-by: Brandon <[email protected]>
1 parent 8cc24ba commit 2f2d67f

File tree

7 files changed

+262
-790
lines changed

7 files changed

+262
-790
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
fi
4848
4949
jq -e '
50-
(.settings.color.palette | map(select(.name == "black")) | length > 0) and
51-
(.settings.typography.fontFamilies | map(select(.name == "sans")) | length > 0) and
52-
(.settings.typography.fontSizes | map(select(.name == "xl")) | length > 0)
50+
(.settings.color.palette | length > 0) and
51+
(.settings.typography.fontFamilies | length > 0) and
52+
(.settings.typography.fontSizes | length > 0)
5353
' "$THEME_JSON" 2>&1 || {
5454
echo "❌ Invalid theme.json structure or missing required values"
5555
exit 1

app/setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
return;
3737
}
3838

39-
$dependencies = json_decode(Vite::content('_editor.deps.json'));
39+
$dependencies = json_decode(Vite::content('editor.deps.json'));
4040

4141
foreach ($dependencies as $dependency) {
4242
if (! wp_script_is($dependency)) {

package-lock.json

Lines changed: 254 additions & 338 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
1717
},
1818
"devDependencies": {
19-
"@tailwindcss/vite": "^4.0.6",
20-
"@wordpress/dependency-extraction-webpack-plugin": "^6.18.0",
19+
"@roots/vite-plugin": "^1.0.0",
20+
"@tailwindcss/vite": "4.0.7",
2121
"laravel-vite-plugin": "^1.2.0",
2222
"tailwindcss": "^4.0.6",
2323
"vite": "^6.1.0"

0 commit comments

Comments
 (0)