我有这样的:当你使用Less时,“forcecompile”对YII意味着什么?
'components'=>array(
'less'=>array(
'class'=>'ext.less.components.LessCompiler',
'forceCompile'=> true, //YII_DEBUG, // indicates whether to force compiling
//'compress'=>false, // indicates whether to compress compiled CSS
//'debug'=>false, // indicates whether to enable compiler debugging mode
'paths'=>array(
'less/style.less'=>'css/style.css',
),
),
如果我能forceCompile我的网站是非常缓慢的。我会想象,因为它重新生成每个页面加载的CSS。我的问题是关于禁用它。如果我禁用它:
- 是否对style.less做出的任何更改都不反映在浏览器中?
- 如果是这样,Less的意义是什么?当然,它实际上不能用于生产呢?或者你是否禁用了forceCompile,所以它只会生成一次?
任何清晰的forcecompile将不胜感激!
(是的,我看了所有的清楚的解释...我最好能找到的是this)。
少点,少点语言或少扩展? –
两者。少扩展实现更少?你为什么要问? (想想我错过了你的问题的关键....) – coderama
少郎,绝对是在生产中也使用。分机是你的选择 –