Skip to content

Commit

Permalink
Add filter to scss compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkruit committed Sep 15, 2023
1 parent 1d6c386 commit e903f0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/scss-compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function bootscore_compile_scss() {
$compiler->setOutputStyle(\ScssPhp\ScssPhp\OutputStyle::COMPRESSED);
}

$compiler = apply_filters('bootscore_scss_compiler', $compiler);

try {
if ($last_modified > $stored_modified || !file_exists($css_file) || $is_environment_dev && !$skip_environment_check) {
$compiled = $compiler->compileString(file_get_contents($scss_file));
Expand Down

0 comments on commit e903f0d

Please sign in to comment.