mirror of
https://github.com/mrclay/minify.git
synced 2025-01-16 20:58:13 +01:00
Use scssphp/scssphp
This commit is contained in:
parent
bc1ffdc5fc
commit
9e182a6255
@ -44,9 +44,9 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"firephp/firephp-core": "~0.4.0",
|
||||
"leafo/scssphp": "^0.3 || ^0.6 || ^0.7",
|
||||
"meenie/javascript-packer": "~1.1",
|
||||
"phpunit/phpunit": "^8",
|
||||
"scssphp/scssphp": "^1.12",
|
||||
"tedivm/jshrink": "~1.1.0"
|
||||
},
|
||||
"suggest": {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user