dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

How can I import a hbs file as a string? #528

Open dan-pzbp opened 12 months ago

dan-pzbp commented 12 months ago

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.