hakimel / Ladda

Buttons with built-in loading indicators.

Home Page:http://lab.hakim.se/ladda/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v1.0.6: can't resolve spin.js

jamesarosen opened this issue · comments

ladda.min.js has

require("spin.js")

but dist/ includes spin.min.js, not spin.js. For use with Webpacker, this requires adding an alias:

alias: {
  spin: resolve('node_modules/ladda/dist/spin.min.js'
}

Version 1.0.6 isn't supported anymore. In the latest release (2.0.1) the dist/ folder only includes minified CSS files. Spin.js is a dependency of Ladda, and would have a path of node_modules/spin.js/spin.js.