• Hello,

    First, thank you for providing and supporting this excellent plugin. It’s blooming excellent.

    Secondly, a request.

    The ability to hook setImportPaths would be very useful, allowing other plugins to provide scss boilerplates for example.

    Something like this would do the trick in ScssLibrary.php:

    $import_paths = apply_filters('scsslib_compiler_import_paths', dirname($in), $in);
    $compiler->setImportPaths($import_paths);

    Let me know what your thoughts are,
    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jamie Perrelet

    (@perrelet)

    Actually, it would be awesome if all of the compiler configurations were hookable in a similar manner.

    i.e:
    setFormatter, setSourceMap, setSourceMapOptions etc…

    This should definitely be a thing, and completely follows the mantra of the plugin that “the configuration is expected to be done in the code”. If it were in git, I would have put in a pull request…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PR – Hooking setImportPaths( … )’ is closed to new replies.