Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让流行的 LESS 库 LessHat 可用于我的早午餐模板,但我希望以一种我能做到的方式完成它:
这可能吗?一步太远了?显然,将静态 LESS 文件放入我的app/stylesheets目录并不难,但这会使链接成为静态的,而且我没有得到非常巧妙的 Bower 集成。
app/stylesheets
只需链接到您的 less 文件中的 lesshat 文件。这样你就可以使用lesshat-functions并且仍然用bower更新lesshat。
例如
@import 'bower_components/lesshat/build/lesshat-prefixed.less';
如果您的项目根文件夹中有styles.less。