fix HMR attempts in production

This commit is contained in:
Luke Edwards
2018-02-05 14:09:24 -08:00
parent 7dbcab74d3
commit 7a2ed16884
4 changed files with 9 additions and 6 deletions

View File

@@ -1,10 +1,11 @@
import { build, export as exporter } from 'sapper/core.js';
import { dest, dev, entry, src } from '../config';
import { dest, entry, isDev, src } from '../config';
process.env.NODE_ENV = 'production';
const cmd = process.argv[2];
const start = Date.now();
const dev = isDev();
if (cmd === 'build') {
build({ dest, dev, entry, src })