reverted change in Gruntfile.js and fixed CSS issues in firefox

This commit is contained in:
Edin Dazdarevic
2015-06-02 12:30:48 +02:00
parent 055f9ab3fa
commit 1db13308ef
4 changed files with 24 additions and 22 deletions

View File

@@ -23,16 +23,16 @@ module.exports = function(grunt) {
server: {
options: {
port: 3001,
base: 'build'//,
// middleware: function(connect, options) {
// return [
// function(req, res) {
// var filename = 'build/' + req.url;
// if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
// res.end(grunt.file.read(filename));
// }
// ];
// },
base: 'build',
middleware: function(connect, options) {
return [
function(req, res) {
var filename = 'build/' + req.url;
if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
res.end(grunt.file.read(filename));
}
];
},
}
}
},