vmitsaras/js-offcanvas

Usage without Modernizr / build for Modernizr

CptMeatball opened this issue · 4 comments

On of the deps of this project is Modernizr, which on itself is not a problem. But what features of Modernzir are used? I don't use Modernizr in my project, and I dpn't want to use the entire Modernzir build.

Alternatively, is there a way to use OffCanvas without Modernizr? I'm trying to use the normal minified files (not the pkgd ones), which throws an error

TypeError: e is undefined

You need olny

  • prefixed
  • transitions
    ~5KB
// Grunt Config
{
  "crawl": false,
  "customTests": [],
  "dest": "/PATH/TO/modernizr-output.js",
  "tests": [
    "prefixed"
  ],
  "options": [
    "prefixed",
    "setClasses"
  ],
  "uglify": true
}

//Command Line Config
{
  "minify": true,
  "options": [
    "prefixed",
    "setClasses"
  ],
  "feature-detects": [
    "test/css/transitions"
  ]
}

In the pkgd are several necessary helper functions grunt/concat.js like:

Hi @CptMeatball
can you confirm that this is working?

I can confirm that on our project js-offcanvas.pkgd.min.js works without modernizr.

Cheers mate! 🎉