Sha256: b9e4e66b73c0b5c9ed46b5c7e86abbe01643569b4e8be32427ff8ad95b62678a

Contents?: true

Size: 617 Bytes

Versions: 7

Compression:

Stored size: 617 Bytes

Contents

import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";

export default defineConfig({
  server: {
    headers: {
      "Cross-Origin-Opener-Policy": "same-origin",
      "Cross-Origin-Embedder-Policy": "require-corp",
    },
  },
  optimizeDeps: {
    exclude: ["@sqlite.org/sqlite-wasm"],
  },
  plugins: [
    VitePWA({
      srcDir: ".",
      filename: "rails.sw.js",
      strategies: "injectManifest",
      injectRegister: false,
      manifest: false,
      injectManifest: {
        injectionPoint: null,
      },
      devOptions: {
        enabled: true,
      },
    }),
  ],
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmify-rails-0.2.0 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.5 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.4 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.3 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.2 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.1 lib/generators/wasmify/pwa/templates/pwa/vite.config.js
wasmify-rails-0.1.0 lib/generators/wasmify/pwa/templates/pwa/vite.config.js