status/builddashboard.js
Romein van Buren d691ca7f85
Dashboard (WIP)
Signed-off-by: Romein van Buren <romein@vburen.nl>
2022-07-08 11:28:44 +02:00

23 lines
487 B
JavaScript

'use strict';
const { build: viteBuild } = require('vite');
const { svelte } = require('@sveltejs/vite-plugin-svelte');
module.exports = () => viteBuild({
root: __dirname + '/gui/dashboard',
base: '.',
plugins: [ svelte() ],
build: {
rollupOptions: {
output: {
assetFileNames: '[hash].[ext]',
entryFileNames: '[hash].js',
chunkFileNames: '[hash].js',
},
},
outDir: __dirname + '/gui/dashboard/build',
},
});
module.exports();