mirror of
https://github.com/smartyellow/status.git
synced 2025-01-09 10:47:58 +00:00
23 lines
487 B
JavaScript
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();
|