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 committed Aug 31, 2020
1 parent 931b21a commit e1997ff
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 e1997ff

Please sign in to comment.