twig-html-loader icon indicating copy to clipboard operation
twig-html-loader copied to clipboard

Data from HTMLWebpackPlugin templateParametters

Open ryuran opened this issue 6 years ago • 1 comments

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

ryuran avatar Feb 08 '19 09:02 ryuran

I finaly move to svg-sprite-html-webpack it do what I want without data from html-webpack plugin.

ryuran avatar Feb 08 '19 17:02 ryuran