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, }),