Skip to content

Commit f37c493

Browse files
authored
chore: patch storybook build for ci (#2303)
1 parent 310afcd commit f37c493

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.storybook/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ module.exports = {
117117
options: {
118118
name: "[path][name].[ext][query]",
119119
outputPath: (url) => {
120+
const cleanURL = url.replace(/_\//g, "");
120121
if (/node_modules\/@spectrum-css/.test(url)) {
121-
return `assets/css/${url.replace(/^_\/_\/node_modules\/@spectrum-css\//g, "")}`;
122+
return `assets/css/${cleanURL.replace(/node_modules\/@spectrum-css\//g, "")}`;
122123
}
123124

124-
return `assets/css/${url.replace(/_\//g, "")}`;
125+
return `assets/css/${cleanURL}`;
125126
},
126127
esModule: false,
127128
},

0 commit comments

Comments
 (0)