Home

Issue: 2525

Modernizr webpack plugin

[issue link]

Hello

I tried to make it work like this in my nuxt.config.js :

const ModernizrWebpackPlugin = require('modernizr-webpack-plugin')

module.exports = {
  build: {
    extend (config, ctx) {
      config.plugins.push(new ModernizrWebpackPlugin({
        'options': [
          'setClasses'
        ],
        'feature-detects': [
          'touchevents'
        ]
      }))
    }
  }
}

No errors during build, but classes are not added to html tag.
Any ideas please ?

thx

This question is available on Nuxt.js community (#c2193)