Permalink
Browse files

[bug fix] Add `update` event for newer node version

  • Loading branch information...
1 parent 443f81a commit b82f6cfb3a2b048a94163f642bc43da1d67b09ee @ben-lin ben-lin committed Aug 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cli.js
View
@@ -50,7 +50,7 @@ module.exports = {
var input = file_path;
var output = input.replace( input_dir, output_dir ).replace( '.html', '.js' );
- if( event === 'new' || event === 'change' ){
+ if( event === 'new' || event === 'change' || event === 'update' ){
return utils.write( utils.layout( use_requirejs ), input, output, use_requirejs );
}
@@ -74,4 +74,4 @@ module.exports = {
console.log( color.green( 'done ' ), 'all templates are compiled' );
}
-};
+};

0 comments on commit b82f6cf

Please sign in to comment.