mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 07:12: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>
39 lines
685 B
TypeScript
39 lines
685 B
TypeScript
import { relativeAliasResolver } from '@sd/config/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import svgr from 'vite-plugin-svgr';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import { name, version } from './package.json';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: {
|
|
port: 8001
|
|
},
|
|
plugins: [
|
|
tsconfigPaths(),
|
|
react(),
|
|
svgr({
|
|
svgrOptions: {
|
|
icon: true
|
|
}
|
|
})
|
|
],
|
|
css: {
|
|
modules: {
|
|
localsConvention: 'camelCaseOnly'
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: [relativeAliasResolver]
|
|
},
|
|
root: 'src',
|
|
define: {
|
|
pkgJson: { name, version }
|
|
},
|
|
build: {
|
|
outDir: '../dist',
|
|
assetsDir: '.'
|
|
}
|
|
});
|