simpliko / wpadverts

WordPress Classifieds Plugin
https://wpadverts.com/
GNU General Public License v2.0
20 stars 11 forks source link

Remove js.map files references #182

Closed gwin closed 1 year ago

gwin commented 1 year ago

the JS from the WP Adverts plugin is generating a significant number of 404's because its compiled JS has references to sourcemaps that don’t exist.

i.e. //# sourceMappingURL=block-default.js.map

You need to update your JS build settings to purge those when making production builds for distribution. There are 210 of these in wp-content/plugins/wpadverts/blocks/categories/build/index.js.

Your build tool merges 210 JS files into 1 file, which is great, but then it contains references to 210 map files that don’t exist and thus generates 404s puts a lot of errors in the console. This issue exists for categories, details, list, manage, publish & search, etc. Each one has its own index.js full of sourcemap calls that do not exist.