Sorry for overloading this post, but my questions are (somewhat) releated.
Absolute Paths
I'm migrating a themed bootstrap app that uses absolute paths for all imports (intellij has path settings for js, but not for sass and it automatically changes imports to absolute paths when refactoring scss files).
gulp-sass works fine with absolute paths.
But sass-migrator can't find imported partials and errors out: Error: Could not find Sass file at 'src\theme\scss\variables-other'.
Question - Is there a path reference standard that I missed when I went to sass class and do I need to reset all my scss imports to use relative paths for imports?
Node Modules I'm currently using bootstrap 5.0.1 (and other modules that are not compliant with the new sass standards).
It seems sass-migrator is attempting to "migrate" node modules, since I'm getting the above-mentioned path errors on bootstrap scss (and other node modules). I don't think this is kosher, since IMO the preferred way to remedy sass-compliance issues is to upgrade node mules directly (I'm in the process of updating bootstrap to 5.0.2, which is compliant).
Question - is there any flag to suppress migrating node modules? Or...is sass-migrator simply evaluating node modules so it can convert @import to @use?
It sounds like by "absolute paths" you mean "paths resolved relative to a load path". You can pass a load path to the Sass migrator using the --load-path flag, just like you can for the Sass compiler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With