Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
fix reversed dev args
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored and Conduitry committed Jul 29, 2019
1 parent 7fd65ee commit 25eb60f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/api/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function build({
dev: false
});

const { client, server, serviceworker } = await create_compilers(bundler, cwd, src, dest, true);
const { client, server, serviceworker } = await create_compilers(bundler, cwd, src, dest, false);

const client_result = await client.compile();
oncompile({
Expand All @@ -96,7 +96,7 @@ export async function build({

if (legacy) {
process.env.SAPPER_LEGACY_BUILD = 'true';
const { client } = await create_compilers(bundler, cwd, src, dest, true);
const { client } = await create_compilers(bundler, cwd, src, dest, false);

const client_result = await client.compile();

Expand Down Expand Up @@ -140,4 +140,4 @@ export async function build({
result: serviceworker_stats
});
}
}
}
2 changes: 1 addition & 1 deletion src/api/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Watcher extends EventEmitter {
let deferred = new Deferred();

// TODO watch the configs themselves?
const compilers: Compilers = await create_compilers(this.bundler, cwd, src, dest, false);
const compilers: Compilers = await create_compilers(this.bundler, cwd, src, dest, true);

const emitFatal = () => {
this.emit('fatal', <FatalEvent>{
Expand Down

0 comments on commit 25eb60f

Please sign in to comment.