Noderize icon indicating copy to clipboard operation
Noderize copied to clipboard

Is it intended that default `watch` sets NODE_ENV to `production`?

Open ivawzh opened this issue 6 years ago • 4 comments

As title said, currently v0.6.0 by default run yarn watch with NODE_ENV=production start.

My assumption is most people will only use watch for development. Is there any reason it should not be development by default?

ivawzh avatar May 19 '18 03:05 ivawzh

This is a bug. I'll fix it next Monday unless you got a PR for it, sorry!

Cretezy avatar May 19 '18 05:05 Cretezy

This seems to be fixed in 0.7.0, but I didn't actually try to fix anything related to this. I've noticed this on one of my projects but it seems to be fairly random.

I'm trying to pin-point more specifically what causes this and I definitely need your help with this one!

Cretezy avatar May 27 '18 05:05 Cretezy

Hey @Cretezy, I'm still seeing this behaviour in 0.7.2. Haven't had anytime to look at the code but give me a shout if I can help with debugging.

craigmulligan avatar Jul 06 '18 10:07 craigmulligan

I've been experiencing this too sometimes, and I'm unsure what is the root of it. If you can give me a sample that I can reproduce it would help greatly! :)

Cretezy avatar Jul 16 '18 17:07 Cretezy