Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 946a5b3

Browse files
author
bhasher
committed
Fix less bug in backend
1 parent 5b9ac09 commit 946a5b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ nunjucks.configure(path.join(__dirname, 'views'), {
3131
if (config.PRODUCTION) {
3232
app.use(logger('combined'));
3333
app.use(compression());
34-
app.use(minify());
3534
}
3635
else {
3736
app.use(logger('dev'));
3837
}
38+
app.use(minify({ minifyJS: false }));
3939

4040
// Prometheus middleware
4141
if(config.METRICS){
@@ -44,8 +44,6 @@ if(config.METRICS){
4444
includePath: true,
4545
}));
4646
}
47-
48-
//app.use(lessMiddleware(path.join(__dirname, 'publics/css'), { compress: true, debug: config.DEBUG }));
4947
app.use(express.json());
5048
app.use(express.urlencoded({extended: false}));
5149
// Set static folder

0 commit comments

Comments
 (0)