dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.

Home Page:https://craco.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I import a hbs file as a string?

dan-pzbp opened this issue · comments

I've got the following webpack config that allows me to import a hbs file content as a string on a sandbox project.

module: {
    rules: [
      {
        test: /\.hbs$/,
        type: "asset/source",
      },
    ],
  },

I don't seem to be able to get this to work though in an actual project that uses craco.