Skip to content

Commit

Permalink
🐛 Fikset lasting av aksel-eksempler i storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Aug 3, 2023
1 parent 5b2669d commit 89ae778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .storybook/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = (indexers) => {
const exampleIndexer = async (fileName: string, opts) => {
let code = readFileSync(fileName, "utf-8").toString();

code = code
.split("\n")
.filter((line) => !line.includes("withDsExample"))
.join("\n");

code = code.replace("export const args =", "const args =");

code += `\nexport default { title: "Eksempler/${fileName
Expand Down
6 changes: 0 additions & 6 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ module.exports = {
},
resolve: {
alias: [
/*
// Example
{
find: "@components",
replacement: path.resolve(__dirname, "./src/components"),
}, */
{
find: "components",
replacement: path.resolve(
Expand Down

0 comments on commit 89ae778

Please sign in to comment.