mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00

* WIP * Update vite * Add oauth landing page * Add API support for GitHub oauthing * Remove console.logs * Add support for logging and and out of GitHub * Add bridge API methods * Add base link styling * Sugar syntax main get * Update vite * changelog * Review changes * Use instance to match UI * lint --------- Co-authored-by: Justin Carlson <justinc@element.io>
22 lines
502 B
JavaScript
22 lines
502 B
JavaScript
import { defineConfig } from 'vite'
|
|
import preact from '@preact/preset-vite'
|
|
import svgLoader from 'vite-svg-loader'
|
|
import { resolve } from 'path'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [preact(), svgLoader({ defaultImport: 'url'})],
|
|
root: 'web',
|
|
base: '',
|
|
build: {
|
|
outDir: '../public',
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve('web', 'index.html'),
|
|
oauth: resolve('web', 'oauth.html'),
|
|
}
|
|
},
|
|
emptyOutDir: true,
|
|
},
|
|
})
|