gpt4 book ai didi

sass - 是否可以让 Sass 输出 "DO NOT MODIFY" header ?

转载 作者:行者123 更新时间:2023-12-04 06:15:13 24 4
gpt4 key购买 nike

是否可以让 Sass 在每个生成的 css 文件的第一行输出“DO NOT MODIFY”消息?

咖啡师:

/* DO NOT MODIFY. This file was compiled Mon, 29 Aug 2011 17:08:00 GMT from
* /var/www/test/app/coffeescripts/add_to_cart.coffee
*/

最佳答案

@chriseppstein 说:

Yep. Any comment that starts with /*! will never be stripped out even in compressed mode.

It also evaluates sass-script so in theory you can add dates, etc. but unless you know ruby that's not easy.

I've been meaning to build helper functions that would be useful in such a context: bit.ly/neASVa

关于sass - 是否可以让 Sass 输出 "DO NOT MODIFY" header ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7338768/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com