alanshaw / grunt-include-replace

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

Encoding change #76

Open wojciech-klonowski opened 7 years ago

wojciech-klonowski commented 7 years ago

In code encoding is chagne globally for grunt.file. If other task use different encoding it will be overwritten. In grunt.file functions as second argument we could set object with option encoding. This is better solution than change it globally. Other way is store in local variable grunt.file.defaultEncoding before change it, and restore defalut value at end.

Task default option encoding should be 'utf8' not 'utf-8'

alanshaw commented 7 years ago

Please send a pull request and I'll take a look