Skip to content

Commit

Permalink
Merge pull request #83 from bezumkin/patch-2
Browse files Browse the repository at this point in the history
Disable multibyte in Sabberworm
  • Loading branch information
meenie committed Jul 24, 2015
2 parents 0cb9bfc + 84c1b35 commit efb003f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Munee/Asset/Type/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Munee\Asset\Type;
use lessc;
use Leafo\ScssPhp\Compiler as ScssCompiler;
use Sabberworm\CSS\Settings as CssSettings;
use Sabberworm\CSS\Parser as CssParser;
use Sabberworm\CSS\Property\Import;
use Sabberworm\CSS\Value\URL;
Expand Down Expand Up @@ -168,7 +169,8 @@ protected function isScss($file)
*/
protected function fixRelativePaths($content, $originalFile)
{
$cssParser = new CssParser($content);
$cssParserSettings = CssSettings::create()->withMultibyteSupport(false);
$cssParser = new CssParser($content, $cssParserSettings);
$cssDocument = $cssParser->parse();

$cssBlocks = $cssDocument->getAllValues();
Expand Down

0 comments on commit efb003f

Please sign in to comment.