alexk111 / SVG-Morpheus

JavaScript library enabling SVG icons to morph from one to the other. It implements Material Design's Delightful Details transitions. (THIS PROJECT IS NOT MAINTAINED ANYMORE)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack support

ahamo opened this issue · comments

commented

Firstly, great library.

Had a little issue using it with Webpack.

  • Installed using Bower
  • import SVGMorpheus from 'svg-morpheus';

However empty object was being returned. Ended up changing the default src file to the unminified version and exposing by - module.exports = SVGMorpheus

Is there a better way to import this file for use with Webpack?

Cheers

@ahamo That should work ok now. Please get the version 0.3.1 and try again.

commented

Thanks Alex, you're a champ @alexk111

would you please upgrade npm module?