1
0
Files
medical-notes/stroma/file/frontend/vite.config.js
Johan Dahlin 50366b9b9c
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s
vault backup: 2025-12-26 02:09:22
2025-12-26 02:09:22 +01:00

26 lines
686 B
JavaScript

import { defineConfig } from 'vite';
import path from 'path';
export default defineConfig({
root: 'src',
base: '/static/file/editor_dist/',
build: {
outDir: '../../static/file/editor_dist',
emptyOutDir: true,
manifest: false, // simplified for now
rollupOptions: {
input: path.resolve(__dirname, 'src/editor.js'),
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`
}
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});