Open jaywork2020 opened 1 year ago
Thank for for this library. I am trying to use the module with gulp-sass. I tried to do something like this
gulp-sass
@import '{ .btn } from ../../node_modules/bootstrap/scss/bootstrap';
But that gives me this error
Can't find stylesheet to import
The gulpfile look something like this
const gulp = require('gulp'), sass = require('gulp-sass')(require('sass')), magicImporter = require('node-sass-magic-importer'); gulp.task('styles', () => { return gulp.src('./src/styles/main.scss') .pipe(sass({ importer: magicImporter(), precision: 10, }).on('error', function(err) { sass.logError(err); })) .pipe(gulp.dest('./dist')); });
I tried to debug the node-sass-magic-importer, it seems to be returning the correct data object
node-sass-magic-importer
{ file: 'C:......bootstrap.scss', // correct full path contents: '.....' // the content of the bootstrap.scss file }
Thanks for your help
I updated the issue details as I did some troubleshooting trying to find the cause. Still not sure why.
Thank for for this library. I am trying to use the module with
gulp-sass
. I tried to do something like thisBut that gives me this error
The gulpfile look something like this
I tried to debug the
node-sass-magic-importer
, it seems to be returning the correct data objectThanks for your help