mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-24 16:18:49 +00:00
35 lines
1013 B
JavaScript
35 lines
1013 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: 'dist',
|
|
assetsDir: '.',
|
|
rollupOptions: {
|
|
output: {
|
|
assetFileNames: '[name][extname]',
|
|
chunkFileNames: '[name].js',
|
|
entryFileNames: '[name].js'
|
|
}
|
|
}
|
|
},
|
|
plugins: [svelte()],
|
|
server: {
|
|
proxy: {
|
|
"/data.json": "http://192.168.233.235",
|
|
"/energyprice.json": "http://192.168.233.235",
|
|
"/dayplot.json": "http://192.168.233.235",
|
|
"/monthplot.json": "http://192.168.233.235",
|
|
"/temperature.json": "http://192.168.233.235",
|
|
"/sysinfo.json": "http://192.168.233.235",
|
|
"/configuration.json": "http://192.168.233.235",
|
|
"/tariff.json": "http://192.168.233.235",
|
|
"/save": "http://192.168.233.235",
|
|
"/reboot": "http://192.168.233.235",
|
|
"/configfile": "http://192.168.233.235",
|
|
"/upgrade": "http://192.168.233.235"
|
|
}
|
|
}
|
|
})
|