JS files in /js and /js/admin have the same name: bundle.js in development and bundle.min.js in production. The minifyJs function in the build pipeline was getting confused and overwriting one with the other, which resulted in the main JS file getting deleted during build. This is fixed by handling them in separate Gulp pipelines, which the function now merges and returns.
I also added some 3rd-party CDN origins to the CSP-report-only header.
Release Checklist
[x] I have tested this code
[ ] I have updated the Changelog
[ ] I have updated any @since unreleased docblock comments
[ ] I have run npm version [major | minor | patch]
JS files in
/js
and/js/admin
have the same name:bundle.js
in development andbundle.min.js
in production. TheminifyJs
function in the build pipeline was getting confused and overwriting one with the other, which resulted in the main JS file getting deleted during build. This is fixed by handling them in separate Gulp pipelines, which the function now merges and returns.I also added some 3rd-party CDN origins to the CSP-report-only header.
Release Checklist
@since unreleased
docblock commentsnpm version [major | minor | patch]