This repository has been archived on 2022-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
tghandbook/vite.config.ts
Hamcha db35e9640f
Some checks failed
continuous-integration/drone Build is failing
Use Vite
2022-05-10 12:27:27 +02:00

19 lines
351 B
TypeScript

import path from "path";
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
VitePWA({
devOptions: {
enabled: true,
},
}),
],
resolve: {
alias: {
"~": path.resolve(__dirname, "./src"),
"@": path.resolve(__dirname),
},
},
});