1234567891011121314151617181920212223242526272829303132 |
- import path from "node:path";
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import { VitePWA } from 'vite-plugin-pwa'
- export default defineConfig({
- base: './',
- plugins: [
- vue({
- script: {
- defineModel: true
- }
- }),
- VitePWA({
- // add this to cache all the imports
- workbox: {
- globPatterns: ["**/*"],
- },
- // add this to cache all the
- // static assets in the public folder
- includeAssets: [
- "**/*",
- ],
- }),
- ],
- resolve: {
- alias: {
- "@": path.resolve(__dirname, "./src"),
- },
- },
- })
|