Fixed build
This commit is contained in:
@@ -4,6 +4,7 @@ import builtins from 'builtin-modules'
|
||||
import esbuildSvelte from 'esbuild-svelte'
|
||||
import { sveltePreprocess } from 'svelte-preprocess'
|
||||
import path from 'path'
|
||||
import { copy } from 'esbuild-plugin-copy'
|
||||
|
||||
const banner = `/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
@@ -41,6 +42,12 @@ const context = await esbuild.context({
|
||||
compilerOptions: { css: 'injected' },
|
||||
preprocess: sveltePreprocess(),
|
||||
}),
|
||||
copy({
|
||||
assets:{
|
||||
from: ['manifest.json','./assets/styles.css'],
|
||||
to: ['./']
|
||||
}
|
||||
})
|
||||
],
|
||||
format: 'cjs',
|
||||
target: 'chrome98',
|
||||
|
||||
Reference in New Issue
Block a user