css / csso

CSS minifier with structural optimizations
https://css.github.io/csso/csso.html
MIT License
3.74k stars 189 forks source link

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

Closed heaven closed 2 months ago

heaven commented 2 months ago

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 commented 2 months ago

Sorry, wrong project :)