How do I set multiple entry points for webpack in next.config.js? #33400
Unanswered
didimedina
asked this question in
Help
Replies: 1 comment
-
|
#774 (comment) This is work for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get webpack to compile one lib before the rest. From what I understand, in webpack5 you can do that by setting multiple entries like this:
Based on the little information, I found here on NextJS docs and the web, I assumed something like this would work in the context of my project in the
next.config.jsfile:But running into errors when I run
npm run dev... what's the proper way to set multiple entry points for a next js using webpack5?My desired outcome is that Tailwind compiles before the rest of my packages. Would appreciate any help I can get on this 🙌🏼
Beta Was this translation helpful? Give feedback.
All reactions