Replies: 8 comments
-
This would be amazing. |
Beta Was this translation helpful? Give feedback.
-
I'd love this for https://github.com/tatethurston/nextjs-routes |
Beta Was this translation helpful? Give feedback.
-
This would be very useful for building next plugins, i.e. custom linting and AST transforming. |
Beta Was this translation helpful? Give feedback.
-
I'd recommend taking a look at astro for an example of a very flexible plugin system - see https://docs.astro.build/en/reference/integrations-reference/ The lack of flexibility with next makes it very difficult to build extensions that enhance the next.js core. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! Would love to have this feature, what is the status now? |
Beta Was this translation helpful? Give feedback.
-
This would also be useful for firebase deployments (at least in their current state.) |
Beta Was this translation helpful? Give feedback.
-
Its kind of crazy this isnt already built in... I found it extremely surprising. |
Beta Was this translation helpful? Give feedback.
-
Would love to see that as well |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
A user on StackOverflow wants to generate some code from his source files before the dev build begins. This is a request to add a feature for providing
next/build
with prebuild and postbuild hooks.It is pretty common for other build tools to offer prebuild/postbuild hooks, and I imagine it would be relatively easy to plug into the underlying Webpack logic. In effect this is really just two
await
calls sandwiched around the existing build and should be relatively high benefit-to-cost ratio to implement.Describe the solution you'd like
The simplest solution is just to add config options:
And in
next/build/index.ts
:Describe alternatives you've considered
Very limited semi-workaround:
Beta Was this translation helpful? Give feedback.
All reactions