提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.6 KiB

  1. import { PluginOption } from "vite";
  2. import { VitePluginInspectorOptions } from "vite-plugin-vue-inspector";
  3. //#region src/vite.d.ts
  4. interface VitePluginVueDevToolsOptions {
  5. /**
  6. * append an import to the module id ending with `appendTo` instead of adding a script into body
  7. * useful for projects that do not use html file as an entry
  8. *
  9. * WARNING: only set this if you know exactly what it does.
  10. * @default ''
  11. */
  12. appendTo?: string | RegExp;
  13. /**
  14. * Enable vue component inspector
  15. *
  16. * @default true
  17. */
  18. componentInspector?: boolean | VitePluginInspectorOptions;
  19. /**
  20. * Target editor when open in editor (v7.2.0+)
  21. *
  22. * @default code (Visual Studio Code)
  23. */
  24. launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'rider' | string;
  25. /**
  26. * Customize openInEditor host
  27. * @default false
  28. * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
  29. */
  30. openInEditorHost?: string | false;
  31. /**
  32. * DevTools client host
  33. * useful for projects that use a reverse proxy
  34. * @default false
  35. * @deprecated This option is deprecated and removed in 7.1.0. The plugin now automatically detects the correct host.
  36. */
  37. clientHost?: string | false;
  38. }
  39. declare function VitePluginVueDevTools(options?: VitePluginVueDevToolsOptions): PluginOption;
  40. //#endregion
  41. export { VitePluginVueDevToolsOptions, VitePluginVueDevTools as default };