Skip to content

Commit

Permalink
编写使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamtin committed Oct 9, 2014
1 parent b44eb38 commit adeb7b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# fis-optimizer-ng-annotate

压缩AngularJS代码前预处理。

## 用法

修改 fis-conf.js

fis.config.merge({
modules : {
optimizer : {
js : ['ng-annotate', 'uglify-js']
}
}
});
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var esprima = require('esprima'),
escodegen = require('escodegen'),
astral = require('astral')();

// register angular annotator pass
require('astral-angular-annotate')(astral);

module.exports = function(content, file, conf) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fis-optimizer-ng-annotate",
"description": "Adds AngularJS dependency injection annotations.",
"version": "0.0.1",
"version": "0.0.2",
"author": "Lamtin <[email protected]>",
"homepage": "http://www.yoozi.cn/",
"repository": {
Expand Down

0 comments on commit adeb7b2

Please sign in to comment.