Upgrade dependencies
This commit is contained in:
parent
03f30a82b9
commit
49661a95ab
2 changed files with 18 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue