Browser extension that demonstrates the Web Annotation Discovery mechanism: subscribe to people’s annotation collections/‘feeds’, to see their notes on the web; and create & publish annotations yourself.

web-annotation-discovery-we.../ vite.config.ts
30 lines
695 B

  1. import path from 'path';
  2. import { defineConfig } from 'vite';
  3. import webExtension from 'vite-plugin-web-extension';
  4. import manifest from './src/manifest.json';
  5. export default defineConfig({
  6. root: 'src',
  7. build: {
  8. outDir: path.resolve(__dirname, 'dist'),
  9. emptyOutDir: true,
  10. minify: false,
  11. sourcemap: true,
  12. },
  13. plugins: [
  14. webExtension({
  15. manifest,
  16. skipManifestValidation: true,
  17. additionalInputs: [
  18. 'overview/index.html',
  19. ],
  20. assets: 'assets',
  21. browser: 'firefox',
  22. // browser: 'chrome',
  23. webExtConfig: {
  24. startUrl: ['http://example.com/page1', 'about:debugging#/runtime/this-firefox'],
  25. },
  26. }),
  27. ],
  28. });