Permalink
Browse files

.min.js not min.js

  • Loading branch information...
dsimard committed Oct 22, 2010
1 parent 4328484 commit 8f17d14d85cc5d9179791897db191d94f8b1ab21
Showing with 1 addition and 1 deletion.
  1. +1 −1 precommit.js
View
@@ -31,7 +31,7 @@ function compress(file) {
rest.post("http://closure-compiler.appspot.com/compile", {data : params})
.addListener('complete', function(data) {
var filename = file.match(/[^/]+$/i)[0];
- filename = filename.replace(/\.js$/i, "min.js");
+ filename = filename.replace(/\.js$/i, ".min.js");
var path = fs.realpathSync("./minified/");
fs.writeFileSync(path + "/" + filename, data);
});

0 comments on commit 8f17d14

Please sign in to comment.