Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

scss laravel

1 => app.js file in import "../sass/app.scss";

2 => vite.config.js fiel in 


import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/sass/app.scss',
                'resources/js/app.js',
            ],
            refresh: true,
        }),
    ],
});


3 => npm run dev
 
PREVIOUS NEXT
Tagged: #scss #laravel
ADD COMMENT
Topic
Name
3+5 =