diff --git a/Gruntfile.js b/Gruntfile.js index 197aaa2..38039ec 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,7 +37,7 @@ module.exports = function (grunt) { }, express: { options: { - port: process.env.PORT || 9000 + port: process.env.PORT || 80 }, dev: { options: { @@ -208,7 +208,7 @@ module.exports = function (grunt) { options: { nodeArgs: ['--debug-brk'], env: { - PORT: process.env.PORT || 9000 + PORT: process.env.PORT || 80 }, callback: function (nodemon) { nodemon.on('log', function (event) { @@ -431,7 +431,7 @@ module.exports = function (grunt) { dist: [ 'jade', 'sass', - 'imagemin', + //'imagemin', 'svgmin' ] }, diff --git a/server/components/wdiff/index.js b/server/components/wdiff/index.js index 36c3c1c..9f56280 100644 --- a/server/components/wdiff/index.js +++ b/server/components/wdiff/index.js @@ -14,8 +14,9 @@ temp.track(); // Perform a comparison between a and b // the callback should have parameters (err, result) +module.exports = newversion -module.exports = function(a, b, asMarkdown, callback) { +function newversion (a, b, asMarkdown, callback) { //a few strings have to be escaped: "[-", "-]", "{+", and "+}" @@ -50,7 +51,7 @@ module.exports = function(a, b, asMarkdown, callback) { return callback(null, resData); } -var oldversion = function(a, b, asMarkdown, callback) { +function oldversion (a, b, asMarkdown, callback) { //!!! this nested file-open is not a good pattern // better would be to use promises and write the two files asynchronously @@ -325,4 +326,4 @@ function unescapeString(str) { str = str.replace(/\&\#91\;-/gm, "[-") str = str.replace(/-\&\#93\;/gm, "-]") return str -} \ No newline at end of file +}