How do I minify CSS in Rails 4?

后端 未结 4 1344
星月不相逢
星月不相逢 2020-12-30 06:18

I tried the following, however I look at the CSS source and it does not minify! I restarted the server several dozen times. I turned off cache in the browser. I also tried t

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 06:47

    This was failing for me because I had image-url("/img/header/gradient.png") instead of image-url("img/header/gradient.png"). The moral: don't use a slash at the beginning of the path.

提交回复
热议问题