mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 09:32:49 +00:00
* begin spacedrop ui + misc ui improvements * better 404 xox * Update extensions.rs I think I prefer Container * added DragRegion component, ot tested cuz im on my fone * Update DragRegion.tsx fix import * added dummy drop items * better dummy data * added clouds & search bar * added action buttons to spacedrop items * customize subtle button * added support for apng, thanks luka big pants * use relative path in sidebar * use BYTES const --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
38 lines
810 B
TypeScript
38 lines
810 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
import { visualizer } from 'rollup-plugin-visualizer';
|
|
import { defineConfig } from 'vite';
|
|
import esm from 'vite-plugin-esmodule';
|
|
import md, { Mode } from 'vite-plugin-markdown';
|
|
import ssr from 'vite-plugin-ssr/plugin';
|
|
import svg from 'vite-plugin-svgr';
|
|
|
|
export default defineConfig({
|
|
// prettier-ignore
|
|
// Prettier reeeally wants to one-line this -- I AM PUTTING MY FOOT DOWN AND SAYING NO!
|
|
plugins: [
|
|
react(),
|
|
ssr({ prerender: true }),
|
|
svg(),
|
|
md({ mode: [Mode.REACT] }),
|
|
visualizer()
|
|
],
|
|
css: {
|
|
modules: {
|
|
localsConvention: 'camelCaseOnly'
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: '@sd/',
|
|
replacement: path.join(__dirname, '../../packages/')
|
|
}
|
|
]
|
|
},
|
|
server: {
|
|
port: 8003
|
|
},
|
|
publicDir: 'public'
|
|
});
|