Skip to content

Commit

Permalink
Bump node engine version & fix asset compression on start
Browse files Browse the repository at this point in the history
  • Loading branch information
seejohnrun committed Jul 12, 2017
1 parent 2ee93a7 commit c5b859e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"bundledDependencies": [],
"engines": {
"node": "0.10.35",
"npm": "1.1.49"
"node": "8.1.4",
"npm": "5.2.0"
},
"bin": {
"haste-server": "./server.js"
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (config.recompressStaticAssets) {
var pro = require('uglify-js').uglify;
var list = fs.readdirSync('./static');
for (var j = 0; j < list.length; j++) {
var item = list[i];
var item = list[j];
var orig_code, ast;
if ((item.indexOf('.js') === item.length - 3) && (item.indexOf('.min.js') === -1)) {
var dest = item.substring(0, item.length - 3) + '.min' + item.substring(item.length - 3);
Expand Down

0 comments on commit c5b859e

Please sign in to comment.