fix: static dir is in srcDir (#37)

This commit is contained in:
Daniel Roe 2020-11-20 00:38:35 +00:00 committed by GitHub
parent c06f09e9ab
commit 16451a3588
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export async function generate (sigmaContext: SigmaContext) {
join(sigmaContext.output.publicDir, sigmaContext._nuxt.publicPath)
)
await copy(
resolve(sigmaContext._nuxt.rootDir, sigmaContext._nuxt.staticDir),
resolve(sigmaContext._nuxt.srcDir, sigmaContext._nuxt.staticDir),
sigmaContext.output.publicDir
)
}

View File

@ -33,6 +33,7 @@ export interface SigmaContext {
_nuxt: {
dev: boolean
rootDir: string
srcDir: string
buildDir: string
staticDir: string
routerBase: string
@ -73,6 +74,7 @@ export function getsigmaContext (nuxtOptions: NuxtOptions, input: SigmaInput): S
_nuxt: {
dev: nuxtOptions.dev,
rootDir: nuxtOptions.rootDir,
srcDir: nuxtOptions.srcDir,
buildDir: nuxtOptions.buildDir,
staticDir: nuxtOptions.dir.static,
routerBase: nuxtOptions.router.base,