Fuse-box: Plugin init, need to know if user is running devServer or Bundle

Created on 15 Mar 2017  路  5Comments  路  Source: fuse-box/fuse-box

Plugin init, need to know if user is running devServer or Bundle

You might have other threads working in a plugin, so need to know if you need to quit these

Feature enhancement

Most helpful comment

But this has to wait until 1.4.1. It is actually coming sooner than expected. We will be able to try out a preview already in a few days!!!

All 5 comments

But this has to wait until 1.4.1. It is actually coming sooner than expected. We will be able to try out a preview already in a few days!!!

np, added a temp fix for it in the typechecker for now

Any new updates on the preview how to figure out if dev server is being used?

It will kind be connected to this one
https://github.com/fuse-box/fuse-box/issues/435

If we had a final complete event for plugins I would know there is dev server was used and if I needed to quit the slave process after its done

I will resolve it tomorrow =)

Try context.bundle.producer.devServerOptions !== undefined

Was this page helpful?
0 / 5 - 0 ratings