All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s
26 lines
686 B
JavaScript
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'),
|
|
},
|
|
},
|
|
});
|