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

114
Visualizações
Classname styles not working in NetlifyCMS with Gatsby

I am implementing a rich text editor into NetlifyCMS and went with the react draftjs wysiwyg.

I can implement the text editor as a normal component and put it into a page. CSS classes work fine there because Gatsby uses css-loader from webpack by default. But, css-loader doesn't seem to work in NetlifyCMS.

What I have found is that the Gatsby/NetlifyCMS combo doesn't allow the css-loader to work in the NetlifyCMS environment. I know that some people with similar issues have gone into the webpack config and adjusted the modules option for the css-loader, but Gatsby hides this a bit differently because it is a default package. This may or may not fix the problem but I'm not sure where to find and adjust the webpack config.

Update:

Custom widgets in netlifyCMS can sometimes struggle with stylesheets. So some have suggested to link it in the header of the component. I tried the following and that did not work either

...
return (
    <>
        <Helmet>
          <link rel="stylesheet" href="./RichTextEditor.css" />
        </Helmet>
        <MyCustomWidget ... />
    </>
)
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