npm install vite-plugin-md-string -D
import mdString from 'vite-plugin-md-string'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), mdString()],
server: {
host: "0.0.0.0"
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
# hello world
import helloStr from './hello.md'
console.log(helloStr) // hello world