News for hackers. Stuff that matters.
Re:The MIT License, Line by Line by 6gvONxR4sf7o on Sunday January 31, 2021 @01:06PM (#25980946)
Is that minification?
Re:The MIT License, Line by Line by cyral on Sunday January 31, 2021 @01:16PM (#25981053)
I thought minifiers were supposed to keep licenses (they can detect the license header). I suppose this could get turned off or messed up by accident with the gigantic custom webpack bundlers even stuff like create-react-app ship with.
Re:The MIT License, Line by Line by nicoburns on Sunday January 31, 2021 @02:55PM (#25981970)
Lots of libraries don't put the license in the header, only in a separate LICENSE file.
Re:The MIT License, Line by Line by fiddlerwoaroof on Sunday January 31, 2021 @11:57PM (#25985693)
I've looked at Webpack's output before, and I don't recall seeing any headers there.
Re:The MIT License, Line by Line by sbergot on Monday February 01, 2021 @08:30AM (#25988481)
Webpack definitely keeps the license headers even when minification is on. They have to start with something like "@license".