How do I integrate webpack loader/semi-filter into jinja templates?
I want to transform a jinja template into a jinja template, but the static paths replaced with the output paths according to webpack config. Basically PUG-loader's require(), but for jinja.
Let's say the filter query would look like this: src="{{ 'path' | webpack }}", but it's not an actual jinja filter, since at build time it would be replaced with src='outputPath'. Where should I start looking at? HTMLWebpackPlugin? HTML-loader?
Other jinja/flask/webpack related projects I looked at tend to bind webpack to flask server more rather than less, which isn't suited for my situation.