From e0c5168890659841c1e118ad6a4d55c99bfb2904 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 8 Dec 2024 13:07:06 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20scripts=20->=20js,=20styles=20->?= =?UTF-8?q?=20css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/setup.php | 8 ++++---- resources/{styles => css}/app.css | 0 resources/{styles => css}/editor.css | 0 resources/{scripts => js}/app.js | 0 resources/{scripts => js}/build/wordpress.ts | 0 resources/{scripts => js}/editor.js | 0 vite.config.js | 10 +++++----- 7 files changed, 9 insertions(+), 9 deletions(-) rename resources/{styles => css}/app.css (100%) rename resources/{styles => css}/editor.css (100%) rename resources/{scripts => js}/app.js (100%) rename resources/{scripts => js}/build/wordpress.ts (100%) rename resources/{scripts => js}/editor.js (100%) diff --git a/app/setup.php b/app/setup.php index 9af976638c..75a77523f8 100644 --- a/app/setup.php +++ b/app/setup.php @@ -17,8 +17,8 @@ */ add_filter('wp_head', function () { echo Str::wrap(app('assets.vite')([ - 'resources/styles/app.css', - 'resources/scripts/app.js', + 'resources/css/app.css', + 'resources/js/app.js', ]), "\n"); }); @@ -43,8 +43,8 @@ } echo Str::wrap(app('assets.vite')([ - 'resources/styles/editor.css', - 'resources/scripts/editor.js', + 'resources/css/editor.css', + 'resources/js/editor.js', ]), "\n"); }); diff --git a/resources/styles/app.css b/resources/css/app.css similarity index 100% rename from resources/styles/app.css rename to resources/css/app.css diff --git a/resources/styles/editor.css b/resources/css/editor.css similarity index 100% rename from resources/styles/editor.css rename to resources/css/editor.css diff --git a/resources/scripts/app.js b/resources/js/app.js similarity index 100% rename from resources/scripts/app.js rename to resources/js/app.js diff --git a/resources/scripts/build/wordpress.ts b/resources/js/build/wordpress.ts similarity index 100% rename from resources/scripts/build/wordpress.ts rename to resources/js/build/wordpress.ts diff --git a/resources/scripts/editor.js b/resources/js/editor.js similarity index 100% rename from resources/scripts/editor.js rename to resources/js/editor.js diff --git a/vite.config.js b/vite.config.js index badc2a81a3..674d49f171 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,17 +4,17 @@ import { wordpressPlugin, wordpressRollupPlugin, wordPressThemeJson, -} from './resources/scripts/build/wordpress' +} from './resources/js/build/wordpress' import tailwindConfig from './tailwind.config.js' export default defineConfig({ plugins: [ laravel({ input: [ - 'resources/styles/app.css', - 'resources/scripts/app.js', - 'resources/styles/editor.css', - 'resources/scripts/editor.js', + 'resources/css/app.css', + 'resources/js/app.js', + 'resources/css/editor.css', + 'resources/js/editor.js', ], refresh: true, }),