mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix: only generate .sls directory when needed
This commit is contained in:
parent
8414e64eeb
commit
696556aef8
@ -26,7 +26,9 @@ export async function build (options: SLSOptions) {
|
||||
await hooks.callHook('template:document', htmlTemplate)
|
||||
await writeFile(htmlTemplate.dst, htmlTemplate.compiled)
|
||||
|
||||
emptyDir(options.slsDir)
|
||||
if (options.targetDir.startsWith(options.slsDir)) {
|
||||
emptyDir(options.slsDir)
|
||||
}
|
||||
|
||||
options.rollupConfig = getRollupConfig(options)
|
||||
await hooks.callHook('rollup:before', options)
|
||||
|
Loading…
Reference in New Issue
Block a user