|
@@ -3,7 +3,7 @@ import vue from "@vitejs/plugin-vue";
|
|
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
import path from "path";
|
|
|
import fs from "fs";
|
|
|
-
|
|
|
+const timestamp = + new Date()
|
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig({
|
|
|
plugins: [vue(), vueJsx({})],
|
|
@@ -12,6 +12,15 @@ export default defineConfig({
|
|
|
"@": path.resolve(__dirname, "src"),
|
|
|
},
|
|
|
},
|
|
|
+ build: {
|
|
|
+ rollupOptions: {
|
|
|
+ output: {
|
|
|
+ entryFileNames: `assets/[name].${timestamp}.js`,
|
|
|
+ chunkFileNames: `assets/[name].${timestamp}.js`,
|
|
|
+ assetFileNames: `assets/[name].${timestamp}.[ext]`
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
server: {
|
|
|
host: "jpcj-h5.zzxcx.net",
|
|
|
port: 443,
|