create build API

This commit is contained in:
Rich Harris
2018-05-22 11:32:06 -04:00
parent 86f71e1faf
commit 4f49fd8d5c
7 changed files with 146 additions and 80 deletions

View File

@@ -7,7 +7,7 @@ import URL from 'url-parse';
import fetch from 'node-fetch';
import * as ports from 'port-authority';
import prettyBytes from 'pretty-bytes';
import { minify_html } from './utils/minify_html';
import { minify_html } from '../api/utils/minify_html';
import { locations } from '../config';
export async function exporter(export_dir: string, { basepath = '' }) {