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

WordPress Trac noreply at wordpress.org
Wed Jun 26 09:01:23 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):

 Replying to [comment:26 joyously]:
 > Replying to [comment:23 herregroen]:
 > > 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.
 >
 > How does this affect the JS that plugins get when they use core script
 handles for dependencies?

 A commons file should itself be listed as a dependency of each core script
 that relies on it so this would be loaded correctly as long as the core
 script handles are used.

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


More information about the wp-trac mailing list