Files
Atomcms-edit/vite.config.js
T
2026-05-09 17:32:17 +02:00

50 lines
1.0 KiB
JavaScript
Executable File

import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import path from "path";
import tailwindcss from "@tailwindcss/postcss";
import autoprefixer from "autoprefixer";
export default defineConfig({
plugins: [
laravel({
input: [
"resources/css/global.css",
"resources/js/global.js",
"resources/themes/atom/css/app.css",
"resources/themes/atom/js/app.js",
"resources/themes/dusk/css/app.css",
"resources/themes/dusk/js/app.js",
],
}),
{
name: "blade",
handleHotUpdate({ file, server }) {
if (file.endsWith(".blade.php")) {
server.ws.send({
type: "full-reload",
path: "*",
});
}
},
},
],
resolve: {
alias: {
"@": "/resources/js",
},
},
css: {
postcss: {
plugins: [tailwindcss(), autoprefixer()],
},
transformer: "postcss",
minify: false,
},
build: {
cssMinify: "esbuild",
minify: "esbuild",
target: "esnext",
},
});