Replies: 1 comment
-
// vite.config.content.ts
build: {
watch: isDev
? {}
: undefined,
outDir: r('extension/dist/contentScripts'),
cssCodeSplit: false,
emptyOutDir: false,
sourcemap: isDev ? 'inline' : false,
lib: {
entry: [r('src/contentScripts/index.ts'), r('src/contentScripts/scan/index.ts')],
name: packageJson.name,
formats: ['iife'],
},
rollupOptions: {
output: {
entryFileNames: 'index.global.js',
extend: true,
},
},
},
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If there are multiple contentScript scripts, how should the package file be set up
Beta Was this translation helpful? Give feedback.
All reactions