itgalaxy / nunjucks-webpack-plugin

A webpack plugin for nunjucks.
MIT License
27 stars 12 forks source link

Add extesion #12

Open xeontem opened 6 years ago

xeontem commented 6 years ago

I use this plugin on the project. And now I need to write my own plugin for nunjucks. So, I have to add it by using 'addExtension'(https://mozilla.github.io/nunjucks/api.html#addextension) method from my configured env. but 'nunjucks-webpack-plugin' do not provide the env. Any ideas to solve this issue?

alexander-akait commented 6 years ago

@xeontem i think we can add setupEnv(env) { /* You logic */ } function option to allow this, feel free to Send a PR