Visual-Communications / fair-housing-pledge

https://fairhousingpledge.com/
0 stars 0 forks source link

hotfix: Build minified JS in production #130

Closed paulshryock closed 3 years ago

paulshryock commented 3 years ago

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