[wp-trac] [WordPress Trac] #28510: Split javascript files in media into modules

WordPress Trac noreply at wordpress.org
Mon Feb 9 19:11:18 UTC 2015


#28510: Split javascript files in media into modules
----------------------------+-----------------------------
 Reporter:  ericlewis       |       Owner:  wonderboymusic
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.2
Component:  Media           |     Version:  3.5
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+-----------------------------

Comment (by iseulde):

 Here's what the Gruntfile could look like with Watchify. You can run
 `grunt watchify` to watch all browserify bundles (I had to split them, I
 couldn't get it to work otherwise). The last task is kept alive, but you
 can just as well use `grunt watch` for that. You can watch the Browserify
 bundles (instead of the modules themselves) to run any tasks after
 Browserify did its thing (e.g. uglify).

 I also added `browserify` to the `precommit` task so you can use it to
 remove debug information.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28510#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list