Upgrade dependencies

This commit is contained in:
Calvin Montgomery 2018-02-15 19:58:33 -08:00
parent 03f30a82b9
commit 49661a95ab
2 changed files with 18 additions and 17 deletions

View file

@ -187,8 +187,10 @@ module.exports = {
fs.mkdirSync(cacheDir);
}
app.use((req, res, next) => {
res.minifyOptions = res.minifyOptions || {};
if (/\.user\.js/.test(req.url)) {
res._no_minify = true;
res.minifyOptions.minify = false;
}
next();