From e1997ff6644523b3c530e44ab15845b98920985a Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Tue, 25 Aug 2020 15:04:49 +0430 Subject: [PATCH] fix(storybook): resolve static dir relative to src dir (#108) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 25eaf86a..aab8563b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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())