Including local JS and CSS files using Gatsbyjs

前端 未结 1 900
攒了一身酷
攒了一身酷 2021-01-24 00:34

I am completely new to the gatsbyjs ecosystem, and at the same time I am learning a bit of reactjs. I recently bought an html template and was trying to use it as a UI in a gats

1条回答
  •  無奈伤痛
    2021-01-24 01:08

    After a more extensive search, I found a couple of articles with a solution. This was the first approach:

    import { withPrefix } from "gatsby"
    import Helmet from "react-helmet"
    
    const IndexPage = () => (
      
    提交回复
热议问题