10up / wp-scaffold

10up WordPress project scaffold.
MIT License
204 stars 48 forks source link

automated asset version #153

Closed hugosolar closed 1 year ago

hugosolar commented 2 years ago

Description of the Change

update asset enqueue on mu-plugin folder with an automated version instead of TENUP_PLUGIN_VERSION constant using Utility\get_asset_info() function. Having this as a default in the template would help to refresh assets on each build

How to test the Change

when assets are being enqueued, version should have the following format: frontend.js?version=[dynamic_version]

Changelog Entry

Enqueue assets using automatic version coming from Utility\get_asset_info() function instead of plugin version constant.

Changed - Existing functionality

Credits

Props @hugosolar

Checklist: