Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!