webpack-modernizr-loader icon indicating copy to clipboard operation
webpack-modernizr-loader copied to clipboard

Doesn't seem to work at all

Open developdeez opened this issue 4 years ago • 2 comments

Followed the instructions and no result in the html. must be outdated

developdeez avatar Mar 11 '21 23:03 developdeez

I've been searching/debugging for a few hours today so I'm hoping this helps you or someone else. All Webpack loaders and plugins that handle Modernizr builds don't seem to be updated for Webpack 5 or are no longer maintained at all anymore.

There's a guide within the official Webpack documentation on how to set this up with val-loader but it requires quite a big custom implementation. Since I needed this in multiple projects I have abstracted this away into (shameless plug) val-loader-modernizr, feel free to use it if you're using Webpack 5 ✌🏼

cascornelissen avatar Apr 09 '21 20:04 cascornelissen

Yep, original solution here https://github.com/webpack-contrib/val-loader#modernizr

alexander-akait avatar Apr 10 '21 12:04 alexander-akait