Open schickling opened 2 years ago
@schickling s/Astro/Vite/ ;)
please 🙏
I appreciate everyone looking forward to this integration but please use the 👍 button instead of leaving +1 comments.
Even more helpful could be if someone wants to take a stab at prototyping/building a Vite <> Contentlayer integration. The more explored this topic already is, the easier it will be for an "official version" to be release. 🚀
please
Voting for vite. (With support for Vue.js and Nuxt 3)
I started messing around with this today and found a really easy way to configure Vite that folks can use before there is an "Official Vite Plugin". This also works well with a vite vue.js project.
//vite.config.ts
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { watch } from "vite-plugin-watch";
export default defineConfig({
plugins: [
react(),
watch({
pattern: "./posts/**/*.{mdx,md}",
command: "contentlayer build",
}),
],
resolve: {
alias: {
"contentlayer/generated": "/.contentlayer/generated",
},
},
});
Yas vite pls
Yes please
Yes, Vite
Add your vote for Vite support by clicking the 👍 emoji below.
Notes:
.contentlayer
folder.