[wp-trac] [WordPress Trac] #48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
WordPress Trac
noreply at wordpress.org
Tue Feb 25 19:30:26 UTC 2020
#48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
---------------------------+-------------------------
Reporter: gziolo | Owner: gziolo
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.4
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:59 afercia]:
> `src/wp-includes/assets` directory isn't copied over the `build`
directory during the build.
Right, it is not copied from /src, it is created every time when building,
here: https://core.trac.wordpress.org/browser/trunk/Gruntfile.js#L358.
This ensures the dependencies are always "fresh" and coming from Webpack,
same as the js files.
Don't seem to be able to reproduce this. How exactly did you build WP?
What command did you use? I suppose the directory can be copied from /src
and then overwritten after Webpack outputs the assets file, but better to
get to the bottom of this first.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48154#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list