[wp-trac] [WordPress Trac] #43731: Use Webpack + NPM scripts to build all the things

WordPress Trac noreply at wordpress.org
Thu Jun 20 13:28:12 UTC 2019


#43731: Use Webpack + NPM scripts to build all the things
------------------------------+-----------------------------
 Reporter:  omarreiss         |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------

Comment (by herregroen):

 One thing to be aware of is that currently WebPack adds some basic
 bootstrap to each file build.

 As our JS is split across a fair amount of files this does increase the
 file size of all our JS files, however for minified files this is quite
 minimal. It adds around 950 characters to each minified JS file.

 I think it's possible to separate the bootstrap to a commons file, however
 this comes with the trade-off that this bootstrap file would need to be
 additionally loaded on every single page that has JS.

 Given the minimal increase I personally feel keeping this simpler is
 preferable right now.

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


More information about the wp-trac mailing list