UNPKG

create-chrome-ext

Version:

Scaffolding your chrome extension, multiple boilerplates supported!

27 lines (25 loc) 620 B
import * as path from 'path' import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import manifest from './src/manifest' // https://vitejs.dev/config/ export default defineConfig({ build: { emptyOutDir: true, outDir: 'build', rollupOptions: { input: { options: path.resolve('options.html'), popup: path.resolve('popup.html'), sidepanel: path.resolve('sidepanel.html'), }, output: { chunkFileNames: 'assets/chunk-[hash].js', }, }, }, plugins: [crx({ manifest })], legacy: { skipWebSocketTokenCheck: true, }, })