Open yoshuawuyts opened 7 years ago
This works on Windows:
"start": "set NODE_ENV=development && electron main.js"
Took a quick look at this & the related issue in create-choo-app
, I think you might be able to get away with not using cross-env
(for now at least) by removing the setting of NODE_ENV
and allowing users to set it themselves when desired.
e.g. UNIX users run NODE_ENV=production && npm start
, Windows users run set NODE_ENV=production & npm start
and so on and so forth for other platforms.
There may be some intricacies I'm missing so feel free to correct me if that's the case.
@chrisdwheatley from my own experience I tend to forget setting NODE_ENV=production
all too often, haha — something we might do is set the knob to production in bankai build
by default, so we can evade this.
A PR would be very welcome to set that behavior by default in Bankai, and then another to remove cross-env
from all our create-choo-*
repos! — hope this make sense; thanks! :sparkles:
See https://github.com/choojs/create-choo-app/issues/20