WebChat/manifest.ts

17 lines
426 B
TypeScript
Raw Normal View History

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