Skip to content
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

Open
schickling opened this issue Apr 14, 2022 · 7 comments
Open

Support Vite #179

schickling opened this issue Apr 14, 2022 · 7 comments
Labels
help wanted Extra attention is needed meta: never-stale

Comments

@schickling
Copy link
Collaborator

schickling commented Apr 14, 2022

Add your vote for Vite support by clicking the 馃憤 emoji below.

Notes:

  • For a Vite integration we could leverage the Vite VFS instead of requiring a .contentlayer folder.
@benbender
Copy link

@schickling s/Astro/Vite/ ;)

@o-az
Copy link

o-az commented May 19, 2022

please 馃檹

@schickling
Copy link
Collaborator Author

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. 馃殌

@schickling schickling added help wanted Extra attention is needed meta: never-stale labels May 19, 2022
@phothinmg
Copy link

please

@Chalkin
Copy link

Chalkin commented Oct 9, 2023

Voting for vite. (With support for Vue.js and Nuxt 3)

@johnpaulkiser
Copy link

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",
    },
  },
});

@m6io
Copy link

m6io commented Jan 6, 2024

Yas vite pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed meta: never-stale
Projects
None yet
Development

No branches or pull requests

7 participants