Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dan-pzbp opened this issue Oct 9, 2023 · 0 comments
Open

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

dan-pzbp opened this issue Oct 9, 2023 · 0 comments

Comments

@dan-pzbp
Copy link

dan-pzbp commented Oct 9, 2023

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.

@dan-pzbp dan-pzbp changed the title How can I import my hbs file as a string? How can I import a hbs file as a string? Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant