Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更少的php不更新css_Php_Css_Less_Lessphp - Fatal编程技术网

更少的php不更新css

更少的php不更新css,php,css,less,lessphp,Php,Css,Less,Lessphp,我使用较少的创建css文件。我正在使用插件 当我第一次编译这段代码时。。。编译webform.less中的基变量并创建精确的输出。但当我编辑基值并编译时,它并没有更新。在使用php进行较少编译时,我是否遗漏了任何内容?仅当输入文件不同或输出文件不存在时,checkedCompile()方法才会编译。您必须使用函数compileFile()一次又一次地编译它 下面的代码可能会执行此操作 <?php require "lessc.inc.php"; $less = new lessc; $

我使用较少的创建css文件。我正在使用插件


当我第一次编译这段代码时。。。编译webform.less中的基变量并创建精确的输出。但当我编辑基值并编译时,它并没有更新。在使用php进行较少编译时,我是否遗漏了任何内容?

仅当输入文件不同或输出文件不存在时,checkedCompile()方法才会编译。您必须使用函数compileFile()一次又一次地编译它

下面的代码可能会执行此操作

<?php
require "lessc.inc.php";
$less = new lessc;
$less->setVariables(array(
  "base" => "968px"
));
$less->compileFile("webform.less", "output.css");
?>

<?php
require "lessc.inc.php";
$less = new lessc;
$less->setVariables(array(
  "base" => "968px"
));
$less->compileFile("webform.less", "output.css");
?>