30 lines
No EOL
619 B
JavaScript
Vendored
30 lines
No EOL
619 B
JavaScript
Vendored
|
|
import { defineConfig } from "vite";
|
|
import laravel from "laravel-vite-plugin";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: "resources/sass/app.scss"
|
|
}),
|
|
|
|
|
|
{
|
|
name: "blade",
|
|
handleHotUpdate({ file, server }) {
|
|
if (file.endsWith(".blade.php")) {
|
|
server.ws.send({
|
|
type: "full-reload",
|
|
path: "*",
|
|
});
|
|
}
|
|
},
|
|
},
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': '/resources/js/'
|
|
}
|
|
},
|
|
|
|
}); |