mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add missing extensions to CSS-specific tasks
This commit is contained in:
parent
aa1af352b2
commit
15c7dd5832
1 changed files with 3 additions and 3 deletions
|
|
@ -97,13 +97,13 @@ class FrontEndFileHandler extends Handler
|
||||||
$file = $this->getFileInfo($args[0], $args[2], $args[1], $args[4], $isCommon);
|
$file = $this->getFileInfo($args[0], $args[2], $args[1], $args[4], $isCommon);
|
||||||
$file->index = (int)$args[3];
|
$file->index = (int)$args[3];
|
||||||
|
|
||||||
$availableExtension = array('css' => 1, 'js' => 1);
|
$availableExtension = array('css' => 1, 'js' => 1, 'less' => 1, 'scss' => 1);
|
||||||
if(!isset($availableExtension[$file->fileExtension]))
|
if(!isset($availableExtension[$file->fileExtension]))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($file->fileExtension == 'css')
|
if($file->fileExtension == 'css' || $file->fileExtension == 'less' || $file->fileExtension == 'scss')
|
||||||
{
|
{
|
||||||
$map = &$this->cssMap;
|
$map = &$this->cssMap;
|
||||||
$mapIndex = &$this->cssMapIndex;
|
$mapIndex = &$this->cssMapIndex;
|
||||||
|
|
@ -194,7 +194,7 @@ class FrontEndFileHandler extends Handler
|
||||||
|
|
||||||
// Process targetIe and media attributes
|
// Process targetIe and media attributes
|
||||||
$file->targetIe = $targetIe;
|
$file->targetIe = $targetIe;
|
||||||
if($file->fileExtension == 'css')
|
if($file->fileExtension == 'css' || $file->fileExtension == 'less' || $file->fileExtension == 'scss')
|
||||||
{
|
{
|
||||||
$file->media = $media;
|
$file->media = $media;
|
||||||
if(!$file->media)
|
if(!$file->media)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue