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

Don't use getRemainingRequest to obtain a filename for the template #8

Open
rjgotten opened this issue Jul 19, 2018 · 0 comments
Open

Comments

@rjgotten
Copy link

rjgotten commented Jul 19, 2018

var filename = loaderUtils.getRemainingRequest(this);

getRemainingRequest contains the full module identifier that also includes all remaining loaders and may potentially create a lot of junk when used as the filename identifier for the view in makeRenderer.

Look at NetMatch/webpack-stache-loader for a better way to get a clean template name based on the clean resourcePath.

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