You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching from using wp_enqueue_script() and co to using this package's autoenqueue(), the difference in the function interfaces is a little jarring. I'd like to recommend the addition of two helper functions which:
Use signatures a little more familiar to WordPress developers in order to make the transition easier
Remove the need to specify an asset manifest path which is IMO an implementation detail
Get around Support CSS-only entrypoints. #1 by silently rewriting a .css path to .js (which is working for theme stylesheets on the SW project)
When switching from using
wp_enqueue_script()and co to using this package'sautoenqueue(), the difference in the function interfaces is a little jarring. I'd like to recommend the addition of two helper functions which:.csspath to.js(which is working for theme stylesheets on the SW project)Usage looks like:
Thoughts? I can work on a PR if we agree these would be useful additions.