一覧へ戻る
jwr1/unplugin-web-ext(新しいタブで開きます)
主要言語: TypeScript
Simplify web extension creation with Webpack, Rollup, Vite, and esbuild.
- star 数
- 6
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2025/08/11
主要言語: TypeScript
Simplify web extension creation with Webpack, Rollup, Vite, and esbuild.
Simplify web extension creation with Webpack, Rollup, Vite, and esbuild.
npm i unplugin-web-ext
// webpack.config.js const { WebExtPlugin } = require('unplugin-web-ext/webpack'); module.exports = { /* ... */ plugins: [ WebExtPlugin({ /* options */ }), ], };
// rollup.config.js import { WebExtPlugin } from 'unplugin-web-ext/rollup'; export default { plugins: [ WebExtPlugin({ /* options */ }), ], };
// vite.config.ts import { WebExtPlugin } from 'unplugin-web-ext/vite'; export default defineConfig({ plugins: [ WebExtPlugin({ /* options */ }), ], });
// esbuild.config.js import { build } from 'esbuild'; import { WebExtPlugin } from 'unplugin-icons/esbuild'; build({ /* ... */ plugins: [ WebExtPlugin({ /* options */ }), ], });
WebExtPlugin({ manifest: ['baseManifest.json', { name: 'my extension' }, 'genManifest.js'], indent: 2, pkgJsonProps: ['version', 'name: short_name'], });
See type definitions for more details.