diff --git a/app.js b/app.js index b8e3a1f..c17e07d 100644 --- a/app.js +++ b/app.js @@ -1,13 +1,10 @@ var express = require('express'), path = require('path'), - favicon = require('static-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), compression = require('compression'), - minify = require('express-minify') - uglifyEs = require('uglify-es'), routes = require('./routes/index'), search = require('./routes/search'), @@ -35,7 +32,6 @@ app.set('views', path.join(__dirname, 'views')); // app.set('view engine', 'jade'); app.set('view engine', 'ejs'); -app.use(favicon()); app.use(logger(':req[x-forwarded-for] - [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length]')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded()); @@ -48,25 +44,6 @@ app.use((req, res, next) => { next(); }); app.use(compression()); -app.use(function(req, res, next) -{ - res.minifyOptions = res.minifyOptions || {}; - res.minifyOptions.js = { output: { comments: 'some' } }; - res.minifyOptions.css = { output: { comments: 'some' } }; - if (/libs\.min\.js$/.test(req.url)) { - res.minifyOptions.minify = false; - } - next(); -}); -app.use(minify({ - cache: 'minify-cache', - uglifyJsModule: uglifyEs, - sassMatch: false, - lessMatch: false, - stylusMatch: false, - coffeeScriptMatch: false - })); - app.use('/', routes); app.use('/search/', search); diff --git a/minify-cache/.gitignore b/minify-cache/.gitignore deleted file mode 100644 index 94548af..0000000 --- a/minify-cache/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -* -*/ -!.gitignore diff --git a/package.json b/package.json index 76d2cb4..48babbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mysticbits/codex-mythica", - "version": "0.2.5", + "version": "0.3.0", "private": true, "scripts": { "start": "nodejs ./bin/www" @@ -12,11 +12,7 @@ "debug": "~0.7.4", "ejs": "^2.5.7", "express": "~4.16.0", - "express-minify": "^1.0.0", - "jade": "~1.3.0", - "morgan": "~1.0.0", - "static-favicon": "~1.0.0", - "uglify-es": "^3.3.5" + "morgan": "~1.0.0" }, "author": { "name": "Eric Woodward", diff --git a/views/partials/top.ejs.broken b/views/partials/top.ejs.broken deleted file mode 100644 index 5f8970a..0000000 --- a/views/partials/top.ejs.broken +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - -
- - - -