Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
Import two files

Recently started learning imports and faced the following problem
After installing the package in gulpfile, you need to make the following entry:

const sass = require('gulp-sass')(require('sass'));

Can I somehow make this record using import?
The only thing that comes to my mind is:

import gulp_sass from 'gulp-sass';
import sass from 'sass';

But there one variable is assigned two values, and here, in fact, there are 2 "variables" and it turns out somehow not very good because you need to use one name in the task, not two.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I would import from 'sass' with a different name, and construct sass per function call, just like when using require.

import gulp_sass from 'gulp-sass';
import _sass_ from 'sass';

const sass = gulp_sass(_sass_);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!