Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda