PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.29k stars 356 forks source link

[EXP] In `with-nextjs/src/pages/index.tsx`, how do I import Global CSS? #1065

Open zxl777 opened 3 weeks ago

zxl777 commented 3 weeks ago

What is the example you wish to see?

In https://github.com/PlasmoHQ/examples/tree/main/with-nextjs/src/pages/index.tsx, how do I import Global CSS? Now I can import Global CSS in .../with-nextjs/src/popup/index.tsx

Is there any context that might help us understand?

`Global CSS cannot be imported from files other than your Custom . Due to the Global nature of stylesheets, and to avoid conflicts, Please move all first-party global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules). Read more: https://nextjs.org/docs/messages/css-global Location: src/pages/index.tsx

Import trace for requested module: ./src/style.css`

Code of Conduct