Skip to content

Commit

Permalink
fix: static dir is in srcDir (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 20, 2020
1 parent d14354e commit 20fe1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
2 changes: 2 additions & 0 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface SigmaContext {
_nuxt: {
dev: boolean
rootDir: string
srcDir: string
buildDir: string
staticDir: string
routerBase: string
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 20fe1dc

Please sign in to comment.