Skip to content

How does the setup directory in addon work? #2033

Closed Answered by kermanx
sghuang19 asked this question in Q&A
Discussion options

You must be logged in to vote

Only code with the exact file name as described in the docs will run (in Node.js or in the browser).

For example, according to https://sli.dev/custom/config-vue, the code you provided must be put inside ./setup/main.ts based on where your slides.md is. Then the code will run in the browser without the need of any extra configuration.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sghuang19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants