twig-html-loader
twig-html-loader copied to clipboard
Twig to html loader for webpack
Hello, I'm trying to move the tag generate by htmlWebpackPlugin as describe in this example (with ejs template) : https://github.com/jantimon/html-webpack-plugin/tree/master/examples/custom-insertion-position I try to do the same with twig-html-loader : `{{...
What if I have something like `Something:folder1:file.html.twig` how can I add that to the namespaces?
```js // webpack.config.js // ... namespaces: { 'layouts': `${src}/twig/layouts`, 'components': `${src}/twig/components`, }, // ... ``` ```twig {% import "@components/footer.twig" as footer %} ``` ```bash ERROR in ./source/twig/index.twig (./node_modules/html-webpack-plugin/lib/loader.js!./source/twig/index.twig) Module build...
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...