tasks/dentist.js
function run_dentist() {
      if (load_files() && parse_html()) {
        if (dest.dest_html) {
          if (dest.dest_js) {
            remove_inline_scripts();
            remove_script_tags();
            inject_script_shim();
          }
          if (dest.dest_css) {
            remove_inline_stylesheets();
            remove_stylesheet_tags();
            inject_stylesheet_shim();
          }
        }
        remove_comments();

        write_js();
        write_css();
        write_html();
        return true;
      }
      else {
        return false;
      }
    }
function run_dentist() {
      if (load_files() && parse_html()) {
        if (dest.dest_html) {
          if (dest.dest_js) {
            remove_inline_scripts();
            remove_script_tags();
            inject_script_shim();
          }
          if (dest.dest_css) {
            remove_inline_stylesheets();
            remove_stylesheet_tags();
            inject_stylesheet_shim();
          }
        }
        remove_comments();

        write_js();
        write_css();
        write_html();
        return true;
      }
      else {
        return false;
      }
    }
function run_dentist ( ) { if ( load_files ( ) && parse_html ( ) ) { if ( dest . dest_html ) { if ( dest . dest_js ) { remove_inline_scripts ( ) ; remove_script_tags ( ) ; inject_script_shim ( ) ; } if ( dest . dest_css ) { remove_inline_stylesheets ( ) ; remove_stylesheet_tags ( ) ; inject_stylesheet_shim ( ) ; } } remove_comments ( ) ; write_js ( ) ; write_css ( ) ; write_html ( ) ; return true ; } else { return false ; } }
Main Dentist task
Main Dentist task