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