Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Hardcoded file extensions #5

Open
SudoCat opened this issue Nov 22, 2017 · 0 comments
Open

Hardcoded file extensions #5

SudoCat opened this issue Nov 22, 2017 · 0 comments

Comments

@SudoCat
Copy link
Owner

SudoCat commented Nov 22, 2017

Right now, we have the "accepted" file extensions hard coded into the loader.

https://github.com/SudoCat/Nunjucks-Isomorphic-Loader/blob/master/src/node-loader.js#L54

We could instead provide a configuration option to allow users to customise this.

Even cooler would be if we could detect the "test" which has been applied to the loader, and then use this to match the extensions. This would remove the amount of user configuration required, however that could provide more unreliable.

@SudoCat SudoCat changed the title Hardcoded accepted file extensions Hardcoded file extensions Nov 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant