mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-11-16 12:05:12 -06:00
17 lines
482 B
JavaScript
17 lines
482 B
JavaScript
import {defineConfig} from 'vite';
|
|
import {fileURLToPath} from 'node:url';
|
|
import {woff2MathFonts} from './vite.fonts.mjs';
|
|
|
|
export default defineConfig({
|
|
plugins: [woff2MathFonts()],
|
|
build: {
|
|
outDir: '../books/shared/assets/scripts/socratiq',
|
|
emptyOutDir: false,
|
|
lib: {
|
|
entry: fileURLToPath(new URL('./src_reader/index.js', import.meta.url)),
|
|
name: 'SocratiqReader', formats: ['iife'], fileName: () => 'reader.js',
|
|
},
|
|
target: 'es2022',
|
|
},
|
|
});
|