Xiao_123 6 місяців тому
батько
коміт
e1ac6afd4b
2 змінених файлів з 9 додано та 0 видалено
  1. 3 0
      index.html
  2. 6 0
      vite.config.mjs

+ 3 - 0
index.html

@@ -4,6 +4,9 @@
 <head>
   <meta charset="UTF-8" />
   <link rel="icon" href="/favicon.ico" />
+  <!-- <meta http-equiv="pragma" content="no-cache" />
+  <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
+  <meta http-equiv="expires" content="0" /> -->
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <title>%VITE_APP_TITLE%</title>
 </head>

+ 6 - 0
vite.config.mjs

@@ -65,4 +65,10 @@ export default defineConfig({
   server: {
     port: 3000
   },
+  configureWebpack: {
+    output: {
+      filename: 'js/[name].' + new Date().getTime() + '.js',
+      chunkFilename: 'js/[name].' + new Date().getTime() + '.js'
+    }
+  }
 })