mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix: static dir is in srcDir
(#37)
This commit is contained in:
parent
c06f09e9ab
commit
16451a3588
@ -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
|
||||
)
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user