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.
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.