[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:
Relates
relates to STCOR-168 As the system gets more extensive and... Closed
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:

Yes, that should work. We use the Webpack EnvironmentPlugin to pass NODE_ENV which webpack will use to trim the fat from React, etc. This plugin is defined in stripes-core, not the CLI.

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.

Generated at Thu Feb 08 23:11:04 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.