You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A note to clarify why loaders can't be simple functions, as per webpack/webpack#119, webpack/webpack#698 will save would-be loader authors a lot of grief.
I've spent some time digging through the docs for an explanation of why something that, at first impression, should work — the ability to specify a loader as a function — does indeed not work.
(This is complicated by the fact that mini-css-extract-plugin seems — but in fact, does not — use such a pattern)
A short note on why you can't just send functions as loaders would have been very helpful on the Writing a loader page.