From: | Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | [pgAdmin4][Patch]: Run MakeFile to generate builds in production mode |
Date: | 2017-09-07 06:28:55 |
Message-ID: | CAM5-9D-F-OqvtihUKEWG5g0rjcdSmKJf4GtgETPcpyZdUgm9AQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi,
When we run Webpack in production mode, it performs optimization on code
while in development we don't optimize generated JS and CSS bundles as dev
mode is for developer use.
So we should run Webpack bundle in production mode when we are generating
bundles for release mode.
*In the second patch:*
1) Enabled "*sourced maps*" in production mode as well which will help in
debugging issues.
2) Removed "*yarn run linter*" script when Webpack runs in production mode
because it is for developer only to check if there are any syntax errors in
JS modules.
3) Removed redundant script command "*yarn run bundle*" as "*yarn run
bundle:dev*" does the same thing.
Please find an attached patch.
Thanks,
Surinder
Attachment | Content-Type | Size |
---|---|---|
run_build_in_production_mode.patch | application/octet-stream | 2.0 KB |
webpack_config_changes.patch | application/octet-stream | 1.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Murtuza Zabuawala | 2017-09-07 10:12:17 | [pgAdmin4][Patch]: Fix 'Connect to Server' dialog layout |
Previous Message | PostgreSQL Graphics Tools Developper Meeting Organisers | 2017-09-06 08:23:43 | Invitation - PostgreSQL Graphic Tools Developer Meeting |