I'm trying to use the standalone compiler for existing code that has style dependencies on a number of npm packages.
The command looks like:
sass --load-path=node_modules src/styles/app.scss public/app.css
I encounter the following error:
Error: Can't find stylesheet to import. @import "~/boostraps-sass/assets/stylesheets/bootstrap/variables"
I understand the ~ is not something specific to sass and some other posts mention it could be solved via custom importer, but that seems to be available only in the js api.
Is there a way to fix the issue without having to change the existing code?
I'm trying to use the standalone compiler for existing code that has style dependencies on a number of npm packages. The command looks like:
sass --load-path=node_modules src/styles/app.scss public/app.css
I encounter the following error:
Error: Can't find stylesheet to import. @import "~/boostraps-sass/assets/stylesheets/bootstrap/variables"
I understand the~
is not something specific to sass and some other posts mention it could be solved via custom importer, but that seems to be available only in the js api. Is there a way to fix the issue without having to change the existing code?Thank you!