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.
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.
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