Removed less middleware

This commit is contained in:
Sahat Yalkabov
2014-02-03 09:16:20 -05:00
parent 27b22b07ea
commit cb6781aec6
3 changed files with 2 additions and 7 deletions

3
app.js
View File

@ -5,7 +5,6 @@
var express = require('express');
var MongoStore = require('connect-mongo')(express);
var flash = require('express-flash');
var less = require('less-middleware');
var path = require('path');
var mongoose = require('mongoose');
var passport = require('passport');
@ -58,7 +57,6 @@ app.set('port', process.env.PORT || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(require('connect-assets')({
build: 'production' === app.get('env'),
src: 'public',
helperContext: app.locals
}));
@ -84,7 +82,6 @@ app.use(function(req, res, next) {
next();
});
app.use(flash());
app.use(less({ src: __dirname + '/public', compress: true }));
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public'), { maxAge: week }));
app.use(function(req, res) {

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,10 @@
// Using (less) in front of a CSS file tells LESS compiler to include contents of CSS.
// As a benefit, this will reduce the number of requests.
@import (less) "lib/animate.css";
@import (less) "lib/font-awesome.min.css";
@import "lib/bootstrap/bootstrap";
@import "themes/default";
// Scaffolding
// -------------------------
// ---- ---------------------
html, body {
height: 100%;