Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails is not removing some comments from the javascripts

I'm ussing the assets pipeline in Rails but the comments in the jquery and jquery-ujs files are not being removed.

It is compressing every other js and css file correctly though.

Any ideas?

like image 289
HappyDeveloper Avatar asked Dec 06 '25 02:12

HappyDeveloper


1 Answers

Uglifier used by default in the rails asset pipeline has a config option :copyright used to preserve the copyright comments.

You can turn it off, however, legally you need to put the copyright somewhere, so if you remove the comment you'll have to put it somewhere else (visible).

like image 100
pjumble Avatar answered Dec 08 '25 13:12

pjumble



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!