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,6 +1,6 @@
import * as path from 'path';
export const dev = process.env.NODE_ENV !== 'production';
export const isDev = () => process.env.NODE_ENV !== 'production';
export const templates = path.resolve(process.env.SAPPER_TEMPLATES || 'templates');
export const src = path.resolve(process.env.SAPPER_ROUTES || 'routes');
@@ -9,4 +9,4 @@ export const dest = path.resolve(process.env.SAPPER_DEST || '.sapper');
export const entry = {
client: path.resolve(templates, '.main.rendered.js'),
server: path.resolve(dest, 'server-entry.js')
};
};