Skip to content

Commit

Permalink
useCompile 应该是由源文件后缀决定而不是产出文件后缀
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Sep 4, 2018
1 parent bf092d5 commit eadc96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ var File = Object.derive(function() {
this._likes = {};
this.defineLikes();

if (_.isTextFile(rExt)) {
if (_.isTextFile(ext)) {
this._isImage = false;
this._isText = true;
this.charset = null;
Expand Down Expand Up @@ -266,7 +266,7 @@ var File = Object.derive(function() {
this.isJsonLike = true;
break;
}
} else if (_.isImageFile(rExt)) {
} else if (_.isImageFile(ext)) {
// this.useDomain = true;
// this.useHash = rExt !== '.ico';
} else {
Expand Down

2 comments on commit eadc96b

@fisker
Copy link

@fisker fisker commented on eadc96b Nov 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

貌似这个commit,行为改变了

@fisker
Copy link

@fisker fisker commented on eadc96b Nov 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没仔细检查 但有些配置失效了

Please sign in to comment.