- If you are using Angular CLI, take a look at Global styles,
"stylePreprocessorOptions"option specifically. - For webpack, you can configure
includePathsin sassLoader plugin configuration. - And it’s similar for gulp builds, you pass
includePathsto the sass plugin.
Whatever your build tool is, sass will treat those paths as root, so you can import them directly, so with:
includePaths: ["anywhere/on/my/disk"]
you can just @import 'styles' instead of @import 'anywhere/on/my/disk/styles'.