diff --git a/app/Console/Commands/clientAssetGenerator.php b/app/Console/Commands/clientAssetGenerator.php new file mode 100644 index 0000000..7a84c68 --- /dev/null +++ b/app/Console/Commands/clientAssetGenerator.php @@ -0,0 +1,30 @@ +warn(__('Command ignored, theme part exists!')); + $this->warn(__('Command ignored, segment part exists!')); return -1; } @@ -85,6 +85,7 @@ DOC; $this->info(__("Theme part created successfully: [blade, js, json, scss, php, assets, screenshot]")); return 0; + } diff --git a/resources/js/client.js b/resources/js/client.js new file mode 100644 index 0000000..8977a30 --- /dev/null +++ b/resources/js/client.js @@ -0,0 +1 @@ +console.log('client run'); diff --git a/resources/sass/client.scss b/resources/sass/client.scss new file mode 100644 index 0000000..9b39b76 --- /dev/null +++ b/resources/sass/client.scss @@ -0,0 +1,5 @@ +*{ + padding: 0; + margin: 0; +} + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 68ba5cc..ae1512b 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -6,6 +6,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> Document + @vite(['resources/sass/client.scss', 'resources/js/client.js'])

diff --git a/vite.config.js b/vite.config.js index a36b23a..3b3887d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,6 +8,8 @@ export default defineConfig({ input: [ 'resources/sass/app.scss', 'resources/js/app.js', + 'resources/sass/client.scss', + 'resources/js/client.js', ], refresh: true, }),