Static GitHub Issues

[2525] Modernizr webpack plugin

prev: vuex mapGetters not working.
next: Can I get the window object before default

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

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2193">#c2193</a>)</em></sub></div>