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

Compatibility with "parcel-plugin-handlebars" #3

Open
rupertsworld opened this issue Oct 24, 2018 · 4 comments
Open

Compatibility with "parcel-plugin-handlebars" #3

rupertsworld opened this issue Oct 24, 2018 · 4 comments
Assignees

Comments

@rupertsworld
Copy link

Currently, if I try to set the parcel build target to "index.hbs" (which compiles to HTML using parcel-plugin-handlebars), there is no index.html file that renders and I get a 404 when I try to browse the served site.

@belicekm belicekm self-assigned this Nov 5, 2018
@belicekm
Copy link
Owner

belicekm commented Nov 5, 2018

Just to be clear, the use case of this plugin is precompilation of handlebars template into javascript file which exports a template function. This template function can be imported and used in other scripts. So by design there isn't produced any .html file.

What is your use case?

@rupertsworld
Copy link
Author

Yep I got that.

The issue is that when this plugin is used in conjunction with parcel-plugin-handlebars (a separate plugin), it breaks the behaviour of parcel-plugin-handlebars, which produces .html files from an .hbs files.

My guess is that parcel-plugin-handlebars-precompile intercepts the .hbs files before they get to parcel-plugin-handlebars and prevents it from seeing them somehow? I don't really know what happens in Parcel behind the scenes – but it would be good to make the two plugins compatible somehow.

@belicekm
Copy link
Owner

belicekm commented Nov 6, 2018

I'm not sure what can be done about that, but I will try to find some solution.

@cgousley
Copy link

cgousley commented Apr 1, 2021

Having the same issue here.

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

3 participants