multi-loader icon indicating copy to clipboard operation
multi-loader copied to clipboard

feat: exports as an `{Array}`

Open plantvsbirds opened this issue 8 years ago • 2 comments

this should be very useful in some cases when I need some resource both be required, loaded dynamically(using babel or css loader) and their source code displayed(using raw loader).

my proposal would be adding an optional param to multi called options, and a boolean value asArray within the object. In this way packages depending on this won't be broken and people can enjoy this feature.

if this interests you please check my changes at https://github.com/plantvsbirds/multi-loader

plantvsbirds avatar Jun 09 '17 06:06 plantvsbirds

@plantvsbirds PR welcome :) it's better for further discussion

michael-ciniawsky avatar Jun 10 '17 05:06 michael-ciniawsky

I will wait for your latest PR. btw I am actually new to webpack loaders and still can't think of a good way passing the option object without breaking existing usage. any idea?

plantvsbirds avatar Jun 12 '17 04:06 plantvsbirds