Communication between Webpack loader and plugin

Viewed 127

I wrote my own Webpack loader that parses a certain type of files and I would like to pass some metadata back to the Webpack compiler and specifically back to the html-webpack-plugin so It can render those to the template.

I've been looking through Webpack documentation and maybe writing a plugin can help with that, but I don't see any obvious way to do it.

What's the right approach?

0 Answers
Related