anthonybe
anthonybe
PD🧩 Plasmo Developers
Created by anthonybe on 8/3/2024 in #🔰newbie
Existing NextJs project
Hello Everyone, I just started working with plasmo and NextJS. I have a NextJS project already working and want to create an extension for it. My first question is how do I add plasmo to it? Do I just copy and paste the files that are in the "with-nextjs" examples repo into my own nextjs repo? If yes, Do I do it under a seperate directory or add them in root of the project? Second question, the documentation with Quickstart: NextJs says: "The .env file is the same, but uses a different namespace (PLASMO_PUBLIC vs NEXT_PUBLIC) Plasmo uses Parcel 2 (opens in a new tab) which uses swc (opens in a new tab) underneath - the same bundler that Next.js uses. Thus, you can share plugin configs such as postcss and tailwindcss without modification." Does that mean that once added to my NextJS project, it will use tailwind.config, and postcss.config from my root nextjs directory and I wont have to add tailwind to it again? BTW, I am using the app/ directory in nextjs for the api, and other things. I've seen examples where people split their app directory into nextjs and plasmo. IS that the only way? Thanks for the help! Can't wait to start using Plasmo
1 replies