Skip to content

How to use @alias in a local vuepress-next plugin? #1366

Closed Answered by Mister-Hope
favoyang asked this question in Q&A
Discussion options

You must be logged in to vote

Vite/Webpack ONLY parse alias for bunded files, which are files used in browser.

Your plugin entry is handled by node directly, so the alias never works.

If you want to use alias, use a bundler to bundle your files and use that output as your plugin entry.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@favoyang
Comment options

@Mister-Hope
Comment options

@favoyang
Comment options

Answer selected by Mister-Hope
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