Example of using v2 Parcel API (rebundling) to run dev-server? #4889
-
I want to you use Parcel v2 API as a part of my bundle tool. It's pretty straightforward for the prod build (just running Should I try to replicate this function? |
Beta Was this translation helpful? Give feedback.
Answered by
DeMoorJasper
Jul 13, 2020
Replies: 1 comment 11 replies
-
If you just want to add some kind of middleware to the devserver you can utilise the proxy config. If you want to write a completely custom server however, you'd probably want to make a custom reporter for that. This is the default dev-server reporter: https://github.com/parcel-bundler/parcel/tree/v2/packages/reporters/dev-server |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
tajo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you just want to add some kind of middleware to the devserver you can utilise the proxy config.
If you want to write a completely custom server however, you'd probably want to make a custom reporter for that. This is the default dev-server reporter: https://github.com/parcel-bundler/parcel/tree/v2/packages/reporters/dev-server