micropackage / block-loader

Automatic WordPress Gutenberg block loader based on template files
GNU General Public License v3.0
24 stars 5 forks source link

Relative asset URI #3

Open jakubmikita opened 3 years ago

jakubmikita commented 3 years ago

I'd like to avoid writing manually the full base url (/wp-content/themes/mytheme/blocks/assets/js/myblock.js). Somehow I expected the path to be prefixed automatically with get_template_directory_uri(). Is it something that's already supported but I'm just doing it wrong? If not, what do you think about adding it? 🤔

Submitted by @davidwebca in https://github.com/micropackage/block-loader/issues/2#issuecomment-774708092