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

Snippet files aren't found when not one of the default extensions #58

Open
shimizust-zz opened this issue Jan 9, 2019 · 0 comments
Open

Comments

@shimizust-zz
Copy link

I'm trying to use this library for displaying java and bash code snippets. I followed the documentation to download a custom version of highlight.js to support these file types. However, this library will still only display code snippets from the default file types (js|ts|coffee|html|hbs|md|css|sass|scss|less|emblem|yaml).

It seems the problem lies in snippet-finder.js findFiles() method, which has a list of supported default extensions. Adding 'java' and 'sh' to the list of extensions allows the library to display java and bash code.

Is there a way to configure the file types from ember-cli-build.js? Or is there an alternate workaround? Thank you

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