WebChat/manifest.ts

17 lines
394 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'],
matches: [isDev ? `*://localhost/*` : '<all_urls>']
2023-07-13 14:27:59 +00:00
}
]
})