twig-html-loader
twig-html-loader copied to clipboard
Data from HTMLWebpackPlugin templateParametters
Currently we need to use data option from this loader to add some data it twig template.
But svg-sprite-loader add sprites in htmlwebpackplugin.files.sprites and we can't access to this variable in twig file.
Can we add HTMLWebpackPlugin templateParameters function output as default data or accessible in data function?
https://github.com/kisenka/svg-sprite-loader/tree/master/examples/interop-with-html-webpack-plugin
I finaly move to svg-sprite-html-webpack it do what I want without data from html-webpack plugin.