Skip to content

Commit

Permalink
Removed LESS stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mqpteam committed Apr 29, 2016
1 parent 6d1f5da commit 6071238
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions webserver/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ var https = require('https');
var fs = require('fs');
var config = require('../serverconfig.js');

// CSS requires
var less = require('less');
var cleancss = (new (require('clean-css')));


var app = express();
var server = null;
var server2 = null;
Expand All @@ -26,17 +21,6 @@ if (config.certificate && config.certificate.key && config.certificate.cert){

//var server = http.createServer(app);

// app.get(/\.css/i, function(req, res){
// fs.readFile( path.resolve(__dirname, 'public/' + req.originalUrl), function(err, data){
// if (err){
// res.status('404');
// res.send('File not found');
// return;
// }
// res.set("Content-type", "text/css");
// res.send(cleancss.minify(data).styles);
// })
// });

app.use(function(req, res, next) {
if(!req.secure && config.webServer.redirectHTTP) {
Expand All @@ -61,14 +45,6 @@ app.get('/api/room', function(req,res){
res.send(roomInfo);
});

// app.get('*/css/style.css', function(req, res){
// less.render('@import "public/css/style.less";', {},
// function (e, output) {
// res.header("Content-type", "text/css");
// res.send(cleancss.minify(output.css).styles);
// });
// });

server.listen(config.webServer.port || process.env.PORT, config.webServer.address || process.env.IP, function(){
var addr = server.address();
console.log("Webserver listening at", addr.address + ":" + addr.port);
Expand Down

0 comments on commit 6071238

Please sign in to comment.