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

115
Vistas
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 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