Use `printf "%T"` to get a string that indicates the type of the `resource` context item. Build a resource if its a string. Pass a minify argument through to the build_js template.