2021-12-28 14:39:20 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
import WindiCSS from "vite-plugin-windicss";
|
|
|
|
import vueI18n from "@intlify/vite-plugin-vue-i18n";
|
2021-12-28 14:59:58 +00:00
|
|
|
import { VitePWA } from "vite-plugin-pwa";
|
2021-12-28 14:39:20 +00:00
|
|
|
import path from "path";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
vue(),
|
|
|
|
WindiCSS(),
|
|
|
|
vueI18n({
|
|
|
|
include: path.resolve(__dirname, "./src/locales/**"),
|
|
|
|
}),
|
2021-12-28 14:59:58 +00:00
|
|
|
VitePWA({ registerType: "autoUpdate" }),
|
2021-12-28 14:39:20 +00:00
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"@": path.resolve(__dirname, "./src"),
|
|
|
|
},
|
|
|
|
},
|
2021-12-28 18:54:28 +00:00
|
|
|
build: {
|
|
|
|
sourcemap: true,
|
|
|
|
},
|
2021-12-28 14:39:20 +00:00
|
|
|
});
|