Skip to content

fix(): vite config examples index.html#200

Open
ShaMan123 wants to merge 2 commits intoThatOpen:mainfrom
ShaMan123:fix/vite-config-example-index
Open

fix(): vite config examples index.html#200
ShaMan123 wants to merge 2 commits intoThatOpen:mainfrom
ShaMan123:fix/vite-config-example-index

Conversation

@ShaMan123
Copy link
Copy Markdown
Contributor

Description

Fixes the index.html file generated by vite.
It had an error with the regexp, didn't work on macOS.

Copy link
Copy Markdown
Contributor Author

@ShaMan123 ShaMan123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready for review

Comment thread vite.config.ts
.slice(1, directorySegments.indexOf("src"))
.join("/");
const exampleName = directorySegments[directorySegments.length - 1];
links += `<a style="width: fit-content;" href="./${directorySegments.join("/")}">${packageName}/${exampleName}</a>\n`;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs testing on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant