dlmanning / gulp-sass

SASS plugin for gulp
MIT License
1.56k stars 381 forks source link

'importers' settings not working to work with '~' replacement, have to choose @mr-hope/gulp-sass #854

Open feng-xiao opened 2 years ago

feng-xiao commented 2 years ago

'importers' setting not working with '~', see the settings below. I have to choose @mr-hope/gulp-sass

importers: [{
  findFileUrl(url) {
    if (!url.startsWith('~')) return null;
    return new URL(url.substring(1), nodeModulesPath);
  }
}]