Files
nimbus/vite.config.js
Mazen Touati e1b844cee0 feat(history): add history viewer and rewind (#38)
* feat(ui): add `input group` base component

* feat(history): add history viewer and rewind

* test: update selector snapshot

* test: add PW base page

* style: apply TS style fixes

* chore(history): request history wiki

* chore(history): remove unwanted symbol

* chore: fix type

* style: apply TS style fixes
2026-01-17 20:50:00 +01:00

37 lines
994 B
JavaScript

import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';
import laravel from 'laravel-vite-plugin';
import path from 'node:path';
import { defineConfig } from 'vite';
export default defineConfig(({ mode }) => ({
base: '/vendor/nimbus/',
plugins: [
vue(),
tailwindcss(),
laravel({
input: ['resources/js/app/app.ts', 'resources/css/app.css'],
buildDirectory: './',
publicDirectory: 'resources/dist',
}),
],
server: {
host: 'localhost',
port: 5174, // <- Use a unique port to avoid conflicts
cors: {
origin: '*',
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'resources/js'),
'~': path.resolve(__dirname, 'resources/css'),
},
},
define: {
'process.env.NODE_ENV': JSON.stringify(
mode === 'development' ? 'development' : 'production',
),
},
}));