angular2-packaging icon indicating copy to clipboard operation
angular2-packaging copied to clipboard

How to et environment = production

Open dragGH102 opened this issue 9 years ago • 0 comments

I managed to adapt this started template to the project I'm currently working on.

Both work correctly:

  • gulp serve-dev
  • gulp serve-build

However I can't manage to set production environment:

 NODE_ENV=production && gulp serve-build # or NODE_ENV="production" && gulp serve-build

still prints:

Current environment: development Change environment via --env or NODE_ENV

  gulp serve-dev --env production # or gulp --env production serve-dev

returns this error:

Task 'serve-build' is not in your gulpfile

Any clue? Thanks in advance

dragGH102 avatar Jul 19 '16 13:07 dragGH102