add SAPPER_BASE and SAPPER_APP environment variables

This commit is contained in:
Rich Harris
2018-03-11 13:29:39 -04:00
parent 819ec0b776
commit be63ea7c96
7 changed files with 22 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ import rimraf from 'rimraf';
import format_messages from 'webpack-format-messages';
import prettyMs from 'pretty-ms';
import * as ports from 'port-authority';
import { dest } from '../config';
import { locations } from '../config';
import { create_compilers, create_main_manifests, create_routes, create_serviceworker_manifest } from '../core';
type Deferred = {
@@ -84,7 +84,7 @@ export async function dev(opts: { port: number }) {
port = await ports.find(3000);
}
const dir = dest();
const dir = locations.dest();
rimraf.sync(dir);
mkdirp.sync(dir);