ブログ一時保存

This commit is contained in:
simple321vip
2022-04-24 23:13:47 +08:00
parent e966d15e5e
commit 6e5d90d613
9 changed files with 306 additions and 99 deletions
+4 -5
View File
@@ -1,16 +1,15 @@
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import viteCompression from 'vite-plugin-compression';
// https://vitejs.dev/config/
// export default defineConfig({
// plugins: [vue()]
// })
// https://vitejs.cn/guide/env-and-mode.html#env-files
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, __dirname)
return {
plugins: [
vue(),
// this is a gzip plugin to generate the .js.gz file
viteCompression()
],
base: env.VITE_RES_URL
}