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: Option to pass blocks to loaders defined in Webpack config? #3

Open
davidbwaters opened this issue Jun 15, 2018 · 0 comments

Comments

@davidbwaters
Copy link

Hi. Thanks for this, I was writing a loader to do this and researching when I discovered it.

One thing I would like would be an option to pass a block to loaders defined in config. Vue-Loader was recently updated to work that way, but I haven't looked at how they do it. Maybe by enabling a "useConfig" option, the loader could add each block as a dependency or figure out a way to load the one file as other types with an inline option to only load a certain block (or filter out other). The type specified like <style lang="sass">. I'm wondering how difficult it would be to implement something like this so people could easily use existing configs and the same config used for .one files would be used for import statements in files.

I'm sure this could be done from config side by storing each config in a var, too, just wondering if it could be integrated. Thanks.

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

2 participants