LESS CSS-JS解析器与已编译 [英] LESS css - JS Parser vs Compiled

查看:89
本文介绍了LESS CSS-JS解析器与已编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道LESS css的JS解释器是否会导致页面加载中的任何明显延迟.我宁愿使用JS解析器,只是因为它更易于使用,因为在每次编辑后我都不必运行编译器,并且由于SCM工具不会同时跟踪.less和.css,因此更易于管理源代码.文件

I was wondering if anyone knew if the JS interpreter for LESS css causes any noticeable delays in page loading. I would prefer to use the JS parser simply because it's easier to use, since I won't have to run the compiler after every edit and easier to manage the source code as SCM tools won't be tracking both the .less and .css files

推荐答案

在快速的计算机/浏览器上速度并不慢.但是,根据您的目标受众,我不会使用它.

Its not slow on fast computers/browsers. However depending on your target audience I wouldn't use it.

我宁愿设置lessc来观看文件/目录并在保存时生成CSS文件.然后将less和css文件都提交到您的SCM(实际上是我所做的).

I would rather setup lessc to watch a file/directory and generate css files on save. And then commit both the less and the css files to your SCM (that is infact what I do).

也可以通过这种方式进行持续的集成构建.

Also doing it this way allows for continuous integration builds.

http://en.wikipedia.org/wiki/Continuous_integration

这篇关于LESS CSS-JS解析器与已编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆