mirror of
https://github.com/OctopusSuite/octopus-file-browser.git
synced 2026-10-08 22:05:20 +00:00
15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
import { resolve } from 'node:path';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(import.meta.dirname, 'src/octopus-file-browser.js'),
|
|
fileName: (format) => format === 'es' ? 'octopus-file-browser.js' : 'octopus-file-browser.umd.cjs',
|
|
formats: ['es', 'umd'],
|
|
name: 'OctopusFileBrowser',
|
|
},
|
|
outDir: 'dist',
|
|
},
|
|
});
|