mirror of
https://github.com/multipleof4/octopus-file-browser.git
synced 2026-09-25 12:35:25 +00:00
Build reusable octopus file browser
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user