rtfeldman/seamless-immutable

Please clarify the docs regarding when dev/prod modes are on (Node)

Ouverte

#50 ouverte le 14 juil. 2015

 (10 commentaires) (0 réaction) (0 personne assignée)JavaScript (221 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (5 367 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Hello,

perhaps it wasn't my brightest day :-) but I found it difficult to find out when the dev or prod modes are active under Node.js. It would be great clarify that in the docs.

I believe this is true (and exhaustive) but am not sure:

/*1.*/ var Immutable = require('seamless-immutable'); // => dev mode
/*2.*/ var Immutable = require('seamless-immutable/seamless-immutable.production.min'); // => prod mode
/*3.*/ var Immutable = require('seamless-immutable/seamless-immutable.production.min'); process.env.NODE_ENV = "development"; // => dev mode

Thank you!

Guide contributeur