New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Vite #179
Comments
@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 |
Add your vote for Vite support by clicking the 馃憤 emoji below.
Notes:
.contentlayer
folder.The text was updated successfully, but these errors were encountered: