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

195
Vistas
How to load sass variables from particular folder?

I want to load all the .scss files from a scssFolder folder and output the file to the src/folder/temp folder.

- appName
  - scssFolder
    - a.scss
    - b.scss
    - more 20 scss files
  - *otherFiles
  - src
  - webpack.config.js

The folder structure, as shown above, has a scssFolder in which there are all the .scss files whose variables need to be processed and output in another file inside src/folder/temp.

a.scss : 

:root {
 @extend .colors
 @extend .elements
}

.colors {
  --a-00 : #ffff;
}

.element {
  --anchor-title: #000;
}

.scheme-2 {
  --random-variable: #000;
}

In the above file the object extended inside the root must be output in the src/folder/root and the other remaining object should be in the file same as the object name src/folder/scheme2.

Is this possible in webpack?

about 4 years ago · Juan Pablo Isaza
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