Skip to content

Commit

Permalink
modified vite settings for npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
harkalygergo committed Dec 27, 2024
1 parent f19609a commit e9a3cd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/Frontend/HomepageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers\Frontend;

use App\Models\Ad;
use App\Models\Banner;
use Illuminate\Routing\Controller;

class HomepageController extends Controller
Expand Down
13 changes: 12 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@ import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler', // or "modern"
silenceDeprecations: ['mixed-decls', 'color-functions', 'global-builtin', 'import']
}
}
},
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
input: [
'resources/sass/app.scss', // Our new line you can change app.scss to whatever.scss
'resources/js/app.js',
],
refresh: true,
}),
],
Expand Down

0 comments on commit e9a3cd9

Please sign in to comment.