Skip to content

Commit

Permalink
change_to_uglify_js_for_minification
Browse files Browse the repository at this point in the history
  • Loading branch information
Batsheva Evers committed Feb 16, 2022
1 parent baf7aa2 commit 53e888b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4,870 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const createServer = (domain = process.env.HOST || "localhost") => {
// use gzip compression minify
if (process.env.NODE_ENV === "production") {
const compression = require("compression")
const minify = require("express-minify")
const UglifyJS = require("uglify-js")
app.use(compression({ threshold: 1 }))
app.use(minify())
UglifyJS.minify(app)
app.set("json spaces", 0)
}

Expand Down
Loading

0 comments on commit 53e888b

Please sign in to comment.