ctrlpanel/vite.config.js

30 lines
619 B
JavaScript
Raw Normal View History

2023-01-11 10:08:22 +00:00
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
export default defineConfig({
plugins: [
laravel({
2023-01-29 18:32:13 +00:00
input: "resources/sass/app.scss"
2023-01-11 10:08:22 +00:00
}),
2023-01-29 18:32:13 +00:00
2023-01-11 10:08:22 +00:00
{
name: "blade",
handleHotUpdate({ file, server }) {
if (file.endsWith(".blade.php")) {
server.ws.send({
type: "full-reload",
path: "*",
});
}
},
},
],
resolve: {
alias: {
2023-01-29 18:32:13 +00:00
'@': '/resources/js/'
2023-01-11 10:08:22 +00:00
}
},
2023-01-29 18:32:13 +00:00
2023-01-11 10:08:22 +00:00
});