astro/examples/with-vite-plugin-pwa/astro.config.mjs

17 lines
526 B
JavaScript
Raw Permalink Normal View History

2021-11-23 02:05:07 +00:00
import { VitePWA } from 'vite-plugin-pwa';
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
export default /** @type {import('astro').AstroUserConfig} */ ({
2021-12-22 21:11:05 +00:00
vite: {
plugins: [VitePWA()],
},
});