WordPress / performance

Performance plugin from the WordPress Performance Group, which is a collection of standalone performance modules.
https://wordpress.org/plugins/performance-lab/
GNU General Public License v2.0
352 stars 95 forks source link

Unminified source JS files and source maps are not distributed with builds #1493

Open westonruter opened 4 weeks ago

westonruter commented 4 weeks ago

I just realized that when doing a production build of a plugin, the JavaScript is getting minified (which is good) but there is no unminified version which is also being distributed. When SCRIPT_DEBUG is enabled, the unminified dev version of scripts should be used instead. Additionally, when using the minified version it would be great if a source map could connect it to the unminified version.

As it stands, the only JS distributed with Optimization Detective is the minified versions:

adamsilverstein commented 1 week ago

This one would be a good ticket to work on at WCUS contributor day.