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.
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import preact from '@preact/preset-vite';
|
|
|
|
import { viteThesaurusRegexPlugin } from './src/build-scripts/viteThesaurusRegexPlugin';
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
base: './',
|
|
|
|
assetsInclude: ['**/*.ooo-thesaurus'],
|
|
|
|
plugins: [
|
|
|
|
viteThesaurusRegexPlugin({
|
|
|
|
sourceUrl: new URL('src/', import.meta.url),
|
|
|
|
thesaurusPath: 'assets/th-en-x-basic.ooo-thesaurus',
|
|
|
|
}),
|
|
|
|
preact(),
|
|
|
|
],
|
|
|
|
});
|