Update Gruntfile.js (#377)
This commit is contained in:
parent
d330550d3d
commit
41cde55b5c
|
@ -12,9 +12,12 @@ module.exports = function(grunt) {
|
|||
' * Version: <%= pkg.version %> (build:<%= pkg.build %>)\n' +
|
||||
' */\n';
|
||||
|
||||
grunt.log.writeln('platform: ' + process.platform.green);
|
||||
|
||||
let iconv_lite, encoding = process.env.SYSTEM_ENCODING || 'win1251';
|
||||
if (process.platform == 'win32') {
|
||||
const cmdencoding = require('child_process').execSync('chcp');
|
||||
grunt.log.writeln(cmdencoding);
|
||||
if ( cmdencoding.includes('866') ) {
|
||||
iconv_lite = require('iconv-lite');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue