move webpack config out of sapper, into the app

This commit is contained in:
Rich Harris
2017-12-13 21:35:56 -05:00
parent bffffe0035
commit 7c0789cabf
5 changed files with 76 additions and 86 deletions

7
lib/config.js Normal file
View File

@@ -0,0 +1,7 @@
const path = require('path');
exports.dev = process.env.NODE_ENV !== 'production';
exports.templates = path.resolve(process.env.SAPPER_TEMPLATES || 'templates');
exports.src = path.resolve(process.env.SAPPER_ROUTES || 'routes');
exports.dest = path.resolve(process.env.SAPPER_DEST || '.sapper');