Aliases

Aliases can be set to resolve imports :

$compiler = new Compiler([
    'publicFolder' => '/absolute/path/to/public/folder',
    'aliases' => [
        '~' => 'node_modules'
    ]
]);

The aliases can be subfolders (like assets/node_modules) and are relative to the source folder. After this example you'll be able to write in your scss :

import "~folder/file.scss";
You must enable javascript to view this website