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

0 comments on commit eadc96b

Please sign in to comment.