fixes
This commit is contained in:
parent
9c71629910
commit
ed25b0e8ba
22
esbuild.config.admin.js
Normal file
22
esbuild.config.admin.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
const config = require("./esbuild.config.js")
|
||||||
|
const svelteConfig = require("./svelte.config.js")
|
||||||
|
|
||||||
|
config.options.minify = false
|
||||||
|
config.options.entryPoints = ["./frontend/src/admin.ts"]
|
||||||
|
config.options.outfile = "./" + config.distDir + "/admin.mjs"
|
||||||
|
delete config.options.outdir
|
||||||
|
config.options.splitting = false
|
||||||
|
config.options.plugins = [
|
||||||
|
config.sveltePlugin({
|
||||||
|
compilerOptions: {
|
||||||
|
css: false,
|
||||||
|
hydratable: false,
|
||||||
|
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
|
||||||
|
},
|
||||||
|
preprocess: svelteConfig.preprocess,
|
||||||
|
cache: true,
|
||||||
|
}),
|
||||||
|
config.resolvePlugin,
|
||||||
|
]
|
||||||
|
|
||||||
|
module.exports = config
|
Loading…
Reference in New Issue
Block a user