Title: PR &#8211; Hooking setImportPaths( &#8230; )
Last modified: January 4, 2021

---

# PR – Hooking setImportPaths( … )

 *  [Jamie Perrelet](https://wordpress.org/support/users/perrelet/)
 * (@perrelet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/pr-hooking-setimportpaths/)
 * 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](https://wordpress.org/support/users/perrelet/)
 * (@perrelet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/pr-hooking-setimportpaths/#post-13859832)
 * Actually, it would be awesome if **all** of the compiler configurations were 
   hookable in a similar manner.
 * i.e:
    setFormatter, setSourceMap, setSourceMapOptions etc…
 *  [Ben](https://wordpress.org/support/users/ben90/)
 * (@ben90)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/pr-hooking-setimportpaths/#post-13942364)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/scss-library_354b48.svg)
 * [SCSS-Library](https://wordpress.org/plugins/scss-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scss-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scss-library/)
 * [Active Topics](https://wordpress.org/support/plugin/scss-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scss-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scss-library/reviews/)

## Tags

 * [Pull Request](https://wordpress.org/support/topic-tag/pull-request/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ben](https://wordpress.org/support/users/ben90/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/pr-hooking-setimportpaths/#post-13942364)
 * Status: not resolved