klei / gulp-angular-filesort

Automatically sort AngularJS app files depending on module definitions and usage
MIT License
132 stars 46 forks source link

Parsing index.html breaks on doctype #33

Closed DeezCashews closed 9 years ago

DeezCashews commented 9 years ago

Error: Error in parsing: "index.html", Line 1: Unexpected token <

Line 1: <!DOCTYPE html>

joakimbeng commented 9 years ago

You shouldn't pass html files to this plugin... It only deals with JavaScript.

DeezCashews commented 9 years ago

Not sure why it gave my this except that maybe my cached templates in template.min.js had html like syntax in them.

Andrew C Wynham Principal Consultant TILT Development, Inc. 703.864.0247

On Wed, Sep 16, 2015 at 2:41 PM, Joakim Carlstein notifications@github.com wrote:

You shouldn't pass html files to this plugin... It only deals with JavaScript.

— Reply to this email directly or view it on GitHub https://github.com/klei/gulp-angular-filesort/issues/33#issuecomment-140837840 .

yusufumac commented 8 years ago

I believe, having html statements in a directive is common. So, at the end, it may not be the html the user is parsing.