WebChat/manifest.ts
2023-07-24 04:10:04 +08:00

16 lines
426 B
TypeScript

import { defineManifest } from '@crxjs/vite-plugin'
import packageJson from './package.json'
const isDev = process.env.NODE_ENV === 'development'
export default defineManifest({
manifest_version: 3,
name: packageJson.displayName,
version: packageJson.version,
content_scripts: [
{
js: ['src/main.tsx'],
matches: isDev ? ['*://localhost/*', 'https://www.example.com/*'] : ['https://*/*']
}
]
})