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

Feature request: stringify loader object #95

Open
MunGell opened this issue Jul 23, 2017 · 4 comments
Open

Feature request: stringify loader object #95

MunGell opened this issue Jul 23, 2017 · 4 comments

Comments

@MunGell
Copy link

MunGell commented Jul 23, 2017

Hi there,

I am working on a loader that needs to compile an array of loaders and options into one string.

I've noticed that vue-loader authors have implemented similar functionality in their code base: vue-loader/lib/loader.js.

I am wondering if this is something that could be part of loader-utils since it could be a helpful function for other loaders as well?

I can create a PR with tests if there will be a need for this helper function.

@ishitatsuyuki
Copy link

I second this. Would you like to create a PR?

@alexander-akait
Copy link
Member

PR welcome

@ljqx
Copy link
Member

ljqx commented Jan 7, 2019

Now the config loaders is moved to use, maybe the name should be sth like stringifyUseEntries, and assume the param to be UseEntry[]?

@alexander-akait
Copy link
Member

@ljqx we can discuss about name in a PR, feel free to send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants