From: | Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | [pgAdmin4][Patch]: Add command under scripts to run webpack bundle in watch mode |
Date: | 2017-08-09 13:21:52 |
Message-ID: | CAM5-9D94=9CuP+iAkDFjcJaB66_L1EpLsLrfatiQfoLTxTp33g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi
Currently, whenever we are making a change in JS file, we have to re-run
bundle script again to generate all bundles again, which takes time and it
is pain for developers to watch it till finished.
So Webpack `watch` option lets the Webapck watch for changes in the file
and compiles only files which are changed after the initial build.
Also added an option `--progress` which updates on terminal about packages
being built and percentage completed.
So, you can run bundle in watch mode in terminal:
``` $ yarn run bundle:watch ```
Reference [link](
https://webpack.js.org/configuration/watch/#components/sidebar/sidebar.jsx)
Please review the patch
Thanks,
Surinder Kumar
Attachment | Content-Type | Size |
---|---|---|
Add_watch_mode_in_scripts.patch | application/octet-stream | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Harshal Dhumal | 2017-08-09 14:19:13 | Re: [PATCH] Work with newer Flask-Security. |
Previous Message | Surinder Kumar | 2017-08-09 12:49:01 | Re: Unified server/desktop config |