Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda