def _run_optimize(self, input_args): # TODO(dbeam): make it possible to _run_optimize twice? Is that useful? args = input_args + [ '--depfile', os.path.join(self._out_folder, 'depfile.d'), '--input', self._tmp_src_dir, '--out_folder', self._out_folder, ] optimize_webui.main(args)
def _run_optimize(self, depfile, html_in_file, html_out_file, js_out_file): # TODO(dbeam): make it possible to _run_optimize twice? Is that useful? assert not self._out_folder self._out_folder = self._create_tmp_dir() optimize_webui.main([ '--depfile', os.path.join(self._out_folder,'depfile.d'), '--html_in_file', html_in_file, '--html_out_file', html_out_file, '--host', 'fake-host', '--input', self._tmp_src_dir, '--js_out_file', js_out_file, '--out_folder', self._out_folder, ])