mo пре 1 година
родитељ
комит
23e29ba649
3 измењених фајлова са 5 додато и 14 уклоњено
  1. 3 1
      index.html
  2. 1 1
      public/version.json
  3. 1 12
      vite.config.ts

+ 3 - 1
index.html

@@ -8,8 +8,10 @@
   <link rel="icon" href="/favicon.ico" />
   <meta name="viewport"
     content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
-  <meta http-equiv="Cache-control" content="no-cache">
   <meta http-equiv="Cache" content="no-cache">
+  <meta http-equiv="pragram" content="no-cache">
+  <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
+
   <meta name="apple-mobile-web-app-capable" content="yes" />
   <!-- 设置苹果工具栏颜色 -->
   <meta name="apple-mobile-web-app-status-bar-style" content="black" />

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1693835504047}
+{"version":1693836004698}

+ 1 - 12
vite.config.ts

@@ -26,7 +26,6 @@ function resolve(dir: string) {
 // const proxyUrl = 'https://dev.kt.colexiu.com/';
 const proxyUrl = 'https://test.lexiaoya.cn';
 const now = new Date().getTime();
-const sign = `e/${now}`;
 export default defineConfig(() => {
   return {
     base: './',
@@ -137,17 +136,7 @@ export default defineConfig(() => {
       __APP_VERSION__: now
     },
     build: {
-      target: 'es2015',
-      rollupOptions: {
-        input: {
-          1: path.resolve(__dirname, './src/index.html')
-        },
-        output: {
-          entryFileNames: `${sign}/[name].js`,
-          chunkFileNames: `${sign}/[name].js`,
-          assetFileNames: `${sign}/[name].[ext]`
-        }
-      }
+      target: 'es2015'
     },
     resolve: {
       alias: {