update webpack/config

This commit is contained in:
Rich Harris
2018-03-04 12:35:13 -05:00
committed by GitHub
parent bdb9d49187
commit 0165c14fd9
7 changed files with 39 additions and 42 deletions

View File

@@ -3,9 +3,7 @@ const pkg = require('../package.json');
const sapper_pkg = require('../../../package.json');
module.exports = {
entry: {
'server': './app/server.js'
},
entry: config.server.entry(),
output: config.server.output(),
target: 'node',
resolve: {
@@ -28,5 +26,9 @@ module.exports = {
}
}
]
},
mode: process.env.NODE_ENV,
performance: {
hints: false // it doesn't matter if server.js is large
}
};