1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-25 06:51:46 +02:00

Use scssphp/scssphp

This commit is contained in:
Steve Clay
2024-01-04 00:25:09 -05:00
parent bc1ffdc5fc
commit 9e182a6255
2 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
<?php
use Leafo\ScssPhp\Compiler;
use Leafo\ScssPhp\Server;
use Leafo\ScssPhp\Version;
use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\Version;
/**
* Class for using SCSS files
@@ -152,7 +151,7 @@ class Minify_ScssCssSource extends Minify_Source
// and will treat the @import line as css import
$scss->setImportPaths(dirname($filename));
$css = $scss->compile(file_get_contents($filename), $filename);
$css = $scss->compileString(file_get_contents($filename), $filename)->getCss();
$elapsed = round((microtime(true) - $start), 4);
$v = Version::VERSION;