[wp-trac] [WordPress Trac] #48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build

WordPress Trac noreply at wordpress.org
Mon Feb 24 21:21:03 UTC 2020


#48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
------------------------------+-------------------------
 Reporter:  gziolo            |       Owner:  gziolo
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.4
Component:  Script Loader     |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-------------------------
Changes (by azaozz):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47352" 47352]:
 {{{
 #!CommitTicketReference repository="" revision="47352"
 Build Tools:
 - Update the DependencyExtractionWebpackPlugin to 2.3.0 and set it to
 output a single assets file.
 - Grunt: copy the assets file to both `SOURCE_DIR` and `BUILD_DIR` as `wp-
 includes/assets/script-loader-packages.php`.
 - "Unignore" the `wp-includes/assets` directory. Its content will be
 committed similarly to `wp-includes/blocks`.
 - Update `wp_default_packages_scripts()` to use the above file. This also
 removes the hard-coded lists of packages and packages with translations.

 Props gziolo, pbearne, johnbillion, isabel_brison, ocean90, azaozz.
 Fixes #48154.
 }}}

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


More information about the wp-trac mailing list