Remove deprecated scripts for adding head-matter to wt_config.xml, including Python and Bash implementations, to streamline configuration management.
This commit is contained in:
57
client/vite.config.js
Normal file
57
client/vite.config.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, resolve } from 'path';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
root: __dirname,
|
||||
server: {
|
||||
port: 5175,
|
||||
hmr: false,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3300',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
ws: false
|
||||
},
|
||||
'/static': {
|
||||
target: 'http://localhost:3300',
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
ignored: [
|
||||
'**/node_modules/**',
|
||||
'**/dist/**',
|
||||
'**/.git/**',
|
||||
resolve(__dirname, '../server/**'),
|
||||
resolve(__dirname, '../docroot/**'),
|
||||
resolve(__dirname, '../src/**'),
|
||||
resolve(__dirname, '../logs/**'),
|
||||
'!**/client/src/**'
|
||||
]
|
||||
}
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
assetsDir: 'assets',
|
||||
sourcemap: false,
|
||||
minify: 'terser',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'vue-vendor': ['vue', 'vue-router', 'pinia'],
|
||||
'socket-vendor': ['socket.io-client']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user