Skip to content
Discussion options

You must be logged in to vote

Hi @jibranb,

this is a good question! While it's technical possible to compile more files since v6, you're right, there is no way to hook in yet. But we can simply add a do_action( 'bootscore_new_compiler' ); to scss-compiler.php:

function bootscore_compile_scss() {
  // Compile the main.scss file
  $scss_compiler_main = new BootscoreScssCompiler();
  $scss_compiler_main->scssFile('/assets/scss/main.scss')
                     ->cssFile('/assets/css/main.css')
                     ->addModifiedCheckTheme()
                     ->addModifiedCheck(get_template_directory() . '/assets/scss/bootstrap/bootstrap.scss', false)
                     ->compile();

  // Compile the editor.scss file
  $…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jibranb
Comment options

@crftwrk
Comment options

@jibranb
Comment options

Answer selected by jibranb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants