示例#1
0
 protected static function _compile($srcFile, $distFile)
 {
     if (copy($srcFile->getPathname(), $distFile->getPathname())) {
         return Shell::run('coffee --compile --no-header --bare ' . $distFile->getPathname());
     }
     return false;
 }
示例#2
0
 protected static function _compile($srcFile, $distFile)
 {
     $command = 'lessc ' . $srcFile->getPathname() . ' > ' . $distFile->getPathname();
     if (Shell::run($command) === true) {
         return self::_urlCompile($distFile->getPathname(), $srcFile->getPath());
     }
     return false;
 }
示例#3
0
 protected static function _compile($srcFile, $distFile)
 {
     $command = 'scss --style expanded --no-cache --sourcemap=none ' . $srcFile->getPathname() . ' ' . $distFile->getPathname();
     if (Shell::run($command) === true) {
         return self::_urlCompile($distFile->getPathname(), $srcFile->getPath());
     }
     return false;
 }
示例#4
0
文件: css.php 项目: nanjingboy/assets
 protected static function _uglify($srcFiles, $distFilePath)
 {
     return Shell::run('uglifycss ' . implode(' ', $srcFiles) . ' > ' . $distFilePath);
 }