alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

Default encoding support #53

Closed legendtang closed 9 years ago

legendtang commented 9 years ago

I found that only files whose encoding is UTF-8 can combine to correct ones. Otherwise, it would be garbled in the browser.

Since this is about file operations, encoding support should be considered since grunt has provided grunt.file.defaultEncoding API to support non-utf8 encoding.

Later I will make a pull request to support default encoding if you would like it.