Skip to content

Commit

Permalink
fix(storybook): resolve static dir relative to src dir (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Aug 25, 2020
1 parent 128aa69 commit a49c51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function getStorybookConfig (options: StorybookOptions) {
}

if (!options.staticDir) {
options.staticDir = path.resolve(options.rootDir, nuxt.options.dir.static)
options.staticDir = path.resolve(nuxt.options.srcDir, nuxt.options.dir.static)
}
const staticDir = options.staticDir.split(',').map(dir => dir.trim())

Expand Down

0 comments on commit a49c51f

Please sign in to comment.