Updated
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
const buildStamp = `${Date.now()}`;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: './',
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(process.cwd(), 'index.html'),
|
||||
privacy: resolve(process.cwd(), 'privacy.html'),
|
||||
},
|
||||
output: {
|
||||
entryFileNames: `assets/[name]-${buildStamp}-[hash].js`,
|
||||
chunkFileNames: `assets/[name]-${buildStamp}-[hash].js`,
|
||||
assetFileNames: `assets/[name]-${buildStamp}-[hash][extname]`,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '127.0.0.1',
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user