How to pre-load SASS custom utilities (variables and mixins) with webpack -
i loading utilities , assets in base.scss
so
@import "_variables"; @import "_mixins"; ...
i have tons of modules in application , doing many changes in these modules.
so importing base.scss
in header of each of scss files causing trouble , seems redundant.
tried using sass's includepaths didn't resolves @import declarations.
there way can auto import utilities without having @import manually in each file?
this loader job
https://github.com/shakacode/sass-resources-loader
adding webpack config
sassresources: [ './path/to/vars.scss', './path/to/mixins.scss' ]
update
check implementation out in action in this boilerplate
Comments
Post a Comment