function hook_scss_compiler_import_paths_alter in SCSS/Less Compiler 8
Add additional scss import paths.
For example need to import Foundation framework into your scss file, you can define path where framework place and use @import foundation.
Parameters
array $additional_import_paths: The array with additional paths.
1 invocation of hook_scss_compiler_import_paths_alter()
- ScssCompilerService::getAdditionalImportPaths in src/
ScssCompilerService.php - Returns additional import paths.
File
- ./
scss_compiler.api.php, line 17 - Hooks related to SCSS compiler module.
Code
function hook_scss_compiler_import_paths_alter(array &$additional_import_paths) {
$additional_import_paths[] = \Drupal::service('file_system')
->realpath('vendor/zurb/foundation/scss');
}