Refine build configuration to exclude hexo from bundle.
This commit is contained in:
parent
68115abd81
commit
280c69586f
@ -4,6 +4,10 @@ import { promises as fs } from 'fs';
|
|||||||
await build({
|
await build({
|
||||||
entryPoints: ['src/main.ts'],
|
entryPoints: ['src/main.ts'],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
external:[
|
||||||
|
'hexo-util',
|
||||||
|
'hexo'
|
||||||
|
],
|
||||||
outdir: 'dist',
|
outdir: 'dist',
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user