ten1seven / what-input

A global utility for tracking the current input method (mouse/pointer, keyboard or touch).
https://ten1seven.github.io/what-input
MIT License
1.35k stars 89 forks source link

Add UMD build with webpack #34

Closed mAAdhaTTah closed 8 years ago

mAAdhaTTah commented 8 years ago

Fixes #33.

The polyfills and what-input source are moved into the src folder with the dist folder holding the compiled UMD build. This should be the minimum required changes to make expose the module via UMD.

Note that the closure isn't necessary but otherwise would make for a giant whitespace change.

mAAdhaTTah commented 8 years ago

Note that I haven't actually tested this, since we haven't started using what-input yet, but just eyeballing the output, it looks like what we're going for.

Edit: Actually, that's not entirely true, I tested it in the browser-sync env; I haven't tested the CJS/AMD versions.

ten1seven commented 8 years ago

Thanks! I've been swamped but plan on checking this out soon.

ten1seven commented 8 years ago

Merged! Look for it as v3.0.0