12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { defineConfig } from 'wxt'
- import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
- import path from 'path'
- // See https://wxt.dev/api/config.html
- export default defineConfig({
- vite: ({ command }) => {
- return {
- plugins: [
- createSvgIconsPlugin({
- iconDirs: [path.resolve(process.cwd(), 'src/assets/svg')],
- symbolId: 'icon-[dir]-[name]',
- svgoOptions: command === 'build'
- })
- ]
- }
- },
- extensionApi: 'chrome',
- srcDir: 'src',
- manifest: {
- name: '派维斯智能体助手',
- version: '0.2.0',
- icons: {
- "16": "icon/icon.png",
- "32": "icon/icon.png"
- },
- permissions: [
- 'storage',
- 'history',
- 'tabs',
- 'activeTab',
- 'webNavigation',
- 'webRequest',
- 'sidePanel',
- "debugger",
- ],
- content_security_policy: {
- extension_pages: "script-src 'self'; object-src 'self';"
- },
- action: {
- default_title: '派维斯智能体助手'
- },
- options_page: 'options.html'
- },
- modules: ['@wxt-dev/module-vue'],
- runner: {
- chromiumArgs: ["--disable-features=DisableLoadExtensionCommandLineSwitch"],
- },
- })
|