ryanhornberger / nunjucks-html-loader

Webpack Loader for Nunjucks that returns raw html. Also works with Webpack watching system.
MIT License
27 stars 23 forks source link

update loader-utils #11

Open mdmoreau opened 6 years ago

mdmoreau commented 6 years ago

See https://github.com/webpack/loader-utils/issues/56

Updating to the latest version of loader-utils and changing the line at https://github.com/ryanhornberger/nunjucks-html-loader/blob/master/index.js#L55 to var opt = utils.getOptions(this); fixed the deprecation warning for me locally.

Thanks for the great loader!

ArturBaybulatov commented 5 years ago

This is an awesome loader. The update would be greatly appreciated

plumpNation commented 10 months ago

Since this issue was opened, v3 moved the getOptions function onto the loader context (this).

var opt = this.getOptions();