Hi I am trying to use UNCSS to remove unused styles from CSS for the first time and I am getting the following error:
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
/home/ubuntu/.nvm/v0.10.35/lib/node_modules/uncss/node_modules/bluebird/js/main/async.js:43 fn = function () { throw arg; }; ^ Error: Fontconfig warning: ignoring C.UTF-8: not a valid language tag
at Socket.onStderr (/home/ubuntu/.nvm/v0.10.35/lib/node_modules/uncss/node_modules/phridge/lib/spawn.js:79:28) at Socket.emit (events.js:117:20) at Socket.<anonymous> (_stream_readable.js:765:14) at Socket.emit (events.js:92:17) at emitReadable_ (_stream_readable.js:427:10) at emitReadable (_stream_readable.js:423:5) at readableAddChunk (_stream_readable.js:166:9) at Socket.Readable.push (_stream_readable.js:128:10) at Pipe.onread (net.js:529:21)
I even tried using Gulp and I have been searching for a solution and I am not understanding the output to fix it.
Any help to resolve this will be greatly appreciated.
-j
I had the same error. Typing this single line resolved the error.
I found en_US.utf8 in my list of locales
locale -a
as explained there: https://help.ubuntu.com/community/Locale(This is a temporarily change, not permanent)