mirror of
https://github.com/jestr-ai/jestr-apps.git
synced 2026-08-12 08:24:10 +02:00
25 lines
909 B
TypeScript
25 lines
909 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { crx } from '@crxjs/vite-plugin'
|
|
import manifest from './manifest.config'
|
|
|
|
export default defineConfig({
|
|
plugins: [crx({ manifest })],
|
|
build: {
|
|
// No modulepreload links. Every asset here is a local disk read off
|
|
// chrome-extension://, so there is no round trip to hide, and Chrome
|
|
// discards the preload anyway — it attributes the preload fetch to a
|
|
// different world than the import that follows, which is the
|
|
// "cross-world extension resource mismatch" warning in the console.
|
|
modulePreload: false,
|
|
rollupOptions: {
|
|
input: {
|
|
offscreen: 'src/offscreen/offscreen.html',
|
|
viewer: 'src/viewer/viewer.html',
|
|
// The Continuity Mode interstitial. Navigated to directly by the
|
|
// service worker, so it needs its own entry point.
|
|
outage: 'src/viewer/outage.html',
|
|
},
|
|
},
|
|
},
|
|
})
|