Skip to content

Commit 71a2afa

Browse files
authored
Merge pull request #71 from batsheva-evers/change_to_uglify_js_for_minification
change_to_uglify_js_for_minification
2 parents baf7aa2 + 53e888b commit 71a2afa

File tree

3 files changed

+15
-4870
lines changed

3 files changed

+15
-4870
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const createServer = (domain = process.env.HOST || "localhost") => {
3636
// use gzip compression minify
3737
if (process.env.NODE_ENV === "production") {
3838
const compression = require("compression")
39-
const minify = require("express-minify")
39+
const UglifyJS = require("uglify-js")
4040
app.use(compression({ threshold: 1 }))
41-
app.use(minify())
41+
UglifyJS.minify(app)
4242
app.set("json spaces", 0)
4343
}
4444

0 commit comments

Comments
 (0)