This following fails to load the scripts in the single pages,
if(is_single( ) ) add_action('wp_enqueue_scripts', 'build_js');
Suppose, If i use
add_action('wp_enqueue_scripts', 'build_js');
the action is performed and scripts are loaded.
I need to perform the action only on single pages of a custom post type. How to do this?