mirror of
https://github.com/projectsend/projectsend.git
synced 2026-09-11 22:38:54 +00:00
6e47d76ba6
Client file sharing, rebuilt from the ground up: a private area per client, resumable uploads, folders, groups and categories, sharing with expiry dates and download limits, comments, file versions, an activity log, a REST API, and sixteen languages. This repository begins here. ProjectSend 2 was developed privately, and that development history is not published — the previous generation remains available, with its own history, at projectsend/legacy. Free software under the GNU General Public License v2, or (at your option) any later version.
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
import react from '@vitejs/plugin-react';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import {
|
|
defineConfig
|
|
} from 'vite';
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: ['resources/css/app.css', 'resources/js/app.tsx'],
|
|
ssr: 'resources/js/ssr.jsx',
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
esbuild: {
|
|
jsx: 'automatic',
|
|
},
|
|
resolve: {
|
|
// Package pages (packages/*/resources/js) are loaded through a
|
|
// symlink to a shared clone outside this repo. Without this, Vite/Rollup
|
|
// resolve modules against the symlink's *real* path and then walk
|
|
// up from there looking for node_modules — which fails, since the
|
|
// real path's ancestry doesn't include this repo's node_modules.
|
|
// preserveSymlinks keeps resolution relative to the symlinked
|
|
// path instead, whose ancestry does.
|
|
preserveSymlinks: true,
|
|
},
|
|
}); |