more tidying up

This commit is contained in:
Rich Harris
2018-01-21 16:11:46 -05:00
parent fb8d952eeb
commit 4940644ae3
9 changed files with 20 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
import * as fs from 'fs';
import * as path from 'path';
import chalk from 'chalk';
import { generate_asset_cache, create_routes, create_app } from 'sapper/core.js';
import { create_assets, create_routes, create_app } from 'sapper/core.js';
import { dest } from '../config.js';
function deferred() {
@@ -31,7 +31,7 @@ export default function create_watcher({ compilers, dev, entry, src, onroutes })
const server_info = server_stats.toJson();
fs.writeFileSync(path.join(dest, 'stats.server.json'), JSON.stringify(server_info, null, ' '));
return generate_asset_cache({
return create_assets({
src, dest, dev,
client_info: client_stats.toJson(),
server_info: server_stats.toJson()