title: dequeuing and enqueuing minified js files in childtheme wordpress
body: <p>I'm trying to dequeue a minified js file from wordpress parent theme.
  Can't seem to work out how to dequeue and then enqueue my own custom js file from child theme.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    add_action( 'wp_enqueue_scripts', 'my_remove_scripts', 20 );
  
      function my_remove_scripts(){
      wp_dequeue_script( 'custom' );
      }
      add_action('wp_enqueue_scripts', 'my_add_scripts');
  
      function my_add_scripts(){
  
      wp_enqueue_script('custom-child', get_template_directory_uri() . '/js/custom'.$js_minify_prefix.'.js', array('jquery'), THEME_VERSION, true);
      }
  </code></pre>
  
  <p>The script in the parent theme is enqueued like this:</p>
  
  <pre><code>    wp_enqueue_script('custom', get_template_directory_uri() . '/js/custom'.$js_minify_prefix.'.js', array('jquery'), THEME_VERSION, true);
  </code></pre>
  
  <p>Is there something I'm missing in the code or is there a special way of dequeueing/enqueueing minified scripts?
  Any help would be appreciated!! :)</p>