summaryrefslogtreecommitdiff
path: root/examples/with-vite-plugin-pwa/astro.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-vite-plugin-pwa/astro.config.mjs')
-rw-r--r--examples/with-vite-plugin-pwa/astro.config.mjs16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/with-vite-plugin-pwa/astro.config.mjs b/examples/with-vite-plugin-pwa/astro.config.mjs
new file mode 100644
index 000000000..29194f9d6
--- /dev/null
+++ b/examples/with-vite-plugin-pwa/astro.config.mjs
@@ -0,0 +1,16 @@
+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} */ ({
+ vite: {
+ plugins: [VitePWA()]
+ }
+});