Skip to content

Commit 3edfd9d

Browse files
committed
Move deprecated --static-dirs to staticDirs export
1 parent 593260e commit 3edfd9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.storybook/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = {
88
'@storybook/addon-a11y',
99
],
1010
core: { builder: 'storybook-builder-vite' },
11+
staticDirs: ['./images'],
12+
1113
async viteFinal(config, { configType }) {
1214
// customize the Vite config here
1315

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" \"**/*.mjs\" --write --ignore-path .gitignore",
2626
"lint": "npm run lint:eslint && npm run lint:prettier",
2727
"format": "npm run format:eslint && npm run format:prettier",
28-
"storybook": "npm run bootstrap && npm run storybook:analyze && start-storybook -p 6006 -s ./.storybook/images",
29-
"storybook:build": "npm run bootstrap && npm run storybook:analyze && build-storybook -s ./.storybook/images",
28+
"storybook": "npm run bootstrap && npm run storybook:analyze && start-storybook -p 6006",
29+
"storybook:build": "npm run bootstrap && npm run storybook:analyze && build-storybook",
3030
"storybook:analyze": "web-component-analyzer **/*.element.ts --outFile custom-elements.json",
3131
"test": "web-test-runner --coverage",
3232
"test:watch": "web-test-runner --watch",

0 commit comments

Comments
 (0)