{"action":"created","issue":{"url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/23","labels_url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/23/comments","events_url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/23/events","html_url":"https://github.com/javoire/browserify-ng-html2js/issues/23","id":97675787,"number":23,"title":"Reading file ignores all other transforms","user":{"login":"BrianGenisio","id":137387,"avatar_url":"https://avatars.githubusercontent.com/u/137387?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianGenisio","html_url":"https://github.com/BrianGenisio","followers_url":"https://api.github.com/users/BrianGenisio/followers","following_url":"https://api.github.com/users/BrianGenisio/following{/other_user}","gists_url":"https://api.github.com/users/BrianGenisio/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianGenisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianGenisio/subscriptions","organizations_url":"https://api.github.com/users/BrianGenisio/orgs","repos_url":"https://api.github.com/users/BrianGenisio/repos","events_url":"https://api.github.com/users/BrianGenisio/events{/privacy}","received_events_url":"https://api.github.com/users/BrianGenisio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T10:55:11Z","updated_at":"2015-08-03T09:25:56Z","closed_at":null,"body":"The way this transform is written, it ignores the [data](https://github.com/javoire/browserify-ng-html2js/blob/master/lib/index.js#L37) that it is passed and instead just [reads the file](https://github.com/javoire/browserify-ng-html2js/blob/master/lib/index.js#L43) directly.  This bypasses any other transforms that may occur on the content before it gets to this transform.\r\n\r\nIn my case, my HTML files all have a BOM at the beginning.  I have been spinning for hours, trying to figure out why using [strip-bomify](https://www.npmjs.com/package/strip-bomify) isn't working, and I tracked it down to this mechanism.  It IS working, but this transform is ignoring my previous transform!\r\n\r\nAn alternative approach would be to add BOM stripping right into this transform.  After reading the content: `content = content.replace(/^\\ufeff/g, '');`\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/comments/127175518","html_url":"https://github.com/javoire/browserify-ng-html2js/issues/23#issuecomment-127175518","issue_url":"https://api.github.com/repos/javoire/browserify-ng-html2js/issues/23","id":127175518,"user":{"login":"javoire","id":642869,"avatar_url":"https://avatars.githubusercontent.com/u/642869?v=3","gravatar_id":"","url":"https://api.github.com/users/javoire","html_url":"https://github.com/javoire","followers_url":"https://api.github.com/users/javoire/followers","following_url":"https://api.github.com/users/javoire/following{/other_user}","gists_url":"https://api.github.com/users/javoire/gists{/gist_id}","starred_url":"https://api.github.com/users/javoire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javoire/subscriptions","organizations_url":"https://api.github.com/users/javoire/orgs","repos_url":"https://api.github.com/users/javoire/repos","events_url":"https://api.github.com/users/javoire/events{/privacy}","received_events_url":"https://api.github.com/users/javoire/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T09:25:55Z","updated_at":"2015-08-03T09:25:55Z","body":"Yeah this is definitely just sloppiness on my part. And that's not acceptable and should be fixed :) I'll hopefully have time to look at this in a couple of days. Or if you feel motivated to fix it, feel free to do so."}}