Just started learning about imports and encountered a particular issue.
After installing the package in your gulpfile
, you must include the following line:
const sass = require('gulp-sass')(require('sass'));
Is there a way to achieve this using import statements?
The only solution I can think of is:
import gulp_sass from 'gulp-sass';
import sass from 'sass';
However, one variable being assigned two values seems off. Ideally, we should use just one name for the task instead of two.