You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
490 B
26 lines
490 B
import { defineConfig } from 'vite'; |
|
import react from '@vitejs/plugin-react'; |
|
|
|
export default defineConfig({ |
|
plugins: [react()], |
|
build: { |
|
outDir: '../dist', |
|
emptyOutDir: true, |
|
|
|
lib: { |
|
entry: 'src/index.js', |
|
name: 'IslandoraMiradorAnnotations', |
|
formats: ['iife'], |
|
fileName: () => 'main.js', |
|
cssFileName: 'main', |
|
}, |
|
|
|
cssCodeSplit: false, |
|
|
|
rollupOptions: { |
|
output: { |
|
inlineDynamicImports: true, |
|
}, |
|
}, |
|
}, |
|
});
|
|
|