Skip to content

Getting file changes to cause a reload #2089

Answered by CHOYSEN
planetoftheweb asked this question in Q&A
Discussion options

You must be logged in to vote

How do you import markdown files? HMR works fine in my case.

// App.vue
import md from './test.md?raw'
console.log(md)

https://vitejs.dev/guide/assets.html#importing-asset-as-string

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@planetoftheweb
Comment options

@planetoftheweb
Comment options

@planetoftheweb
Comment options

@CHOYSEN
Comment options

@planetoftheweb
Comment options

Answer selected by planetoftheweb
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