mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-25 12:35:01 +01:00
20 lines
325 B
JavaScript
20 lines
325 B
JavaScript
|
const { resolve } = require('path');
|
||
|
const { build } = require('vite');
|
||
|
|
||
|
async function main() {
|
||
|
await build({
|
||
|
outDir: './dist',
|
||
|
build: {
|
||
|
rollupOptions: {
|
||
|
input: {
|
||
|
main: resolve(__dirname, 'index.html')
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
console.log('SDK works in Vite build ✅');
|
||
|
}
|
||
|
|
||
|
main();
|