mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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 hooks.callHook('template:document', htmlTemplate)
|
||||||
await writeFile(htmlTemplate.dst, htmlTemplate.compiled)
|
await writeFile(htmlTemplate.dst, htmlTemplate.compiled)
|
||||||
|
|
||||||
|
if (options.targetDir.startsWith(options.slsDir)) {
|
||||||
emptyDir(options.slsDir)
|
emptyDir(options.slsDir)
|
||||||
|
}
|
||||||
|
|
||||||
options.rollupConfig = getRollupConfig(options)
|
options.rollupConfig = getRollupConfig(options)
|
||||||
await hooks.callHook('rollup:before', options)
|
await hooks.callHook('rollup:before', options)
|
||||||
|
Loading…
Reference in New Issue
Block a user