csso-rails icon indicating copy to clipboard operation
csso-rails copied to clipboard

TypeError: console.warn is not a function (ExecJS::ProgramError)

Open heaven opened this issue 3 months ago • 0 comments

When optimizing a CSS file.

And csso.js contains this line:

case null:console.warn("[csstree-match] BREAK after "+os+" iterations")

The warn function is missing here:

console = {
  log: function(){},
  error: function(txt){
    throw txt;
  }
};

heaven avatar Apr 11 '24 18:04 heaven