[FOLIO-1130] Build Stripes with NODE_ENV=production for snapshot builds Created: 15/Mar/18 Updated: 10/Jul/19 Resolved: 29/Apr/18 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P3 |
| Reporter: | Wayne Schneider | Assignee: | Wayne Schneider |
| Resolution: | Done | Votes: | 0 |
| Labels: | ci, sprint37 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 2 hours, 15 minutes | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||
| Sprint: | |||||||||
| Description |
|
...but also create a snapshot build in non-production mode. |
| Comments |
| Comment by Wayne Schneider [ 15/Mar/18 ] |
|
The process that runs yarn build should have this environment variable set to get production code. Matthew Jones commented on Slack:
|
| Comment by Wayne Schneider [ 27/Apr/18 ] |
|
Command should be: $ NODE_ENV=production yarn build <output_directory> --sourcemap |
| Comment by Wayne Schneider [ 29/Apr/18 ] |
|
folio-snapshot and folio-snapshot-stable will be built with NODE_ENV=production. folio-testing will continue to be built in "dev" mode. |