Question: Why require node_modules to be in the sass path? #847
Description
I know this has come up several time, but I'd like to know why this was decided:
NOTE: The components' Sass files expect that the node_modules directory containing the @Material scope folder is present on the Sass include path.
I am using this project with webpack and vue. In order to add node_modules to the path in this context took me several days to figure out. In the end, I found it was a bug with sass loader, and found the solution buried in an issue someone filed: webpack-contrib/sass-loader#412 . I added this line to my webpack config and got it working: (even though this was not the documented way to do it)
scss: 'vue-style-loader!css-loader!sass-loader?{"includePaths":["./node_modules"]}',
Well webpack 3.0 has come out, and I have to solve this problem all over again! I've already poured a good 4 hours into it, and still haven't found a solution.
So back to my original question, is there a good reason why this was decided? I'm about to throw in the towel and use a different framework. But obviously I really don't want to because this project has been so great in every other way.
It seems like it would be so easy to rewrite the paths to be relative instead of based on what's in the path. For example @import "@material/theme/mixins";
would become @import "../../theme/mixins";
If given the green light, I would submit the pull request!