Open do-you-dare opened 4 years ago
Rails 6 uses webpack by default, and it seems that social-share-button doesn't support it yet. I seems to involve adding a package.json and publishing the project on npm. An example can be found here: https://github.com/ifad/data-confirm-modal/pull/53, found on this webpacker issue: https://github.com/rails/webpacker/issues/57.
social-share-button
package.json
Do you plan to support installing with webpacker?
Way too hacky. Should not require coffee-loader, should not require('some_erb_file.erb') and so on.
coffee-loader
require('some_erb_file.erb')
Js should be compiled and ready to be imported as require("social-share-button") directly.
require("social-share-button")
Rails 6 uses webpack by default, and it seems that
social-share-button
doesn't support it yet. I seems to involve adding apackage.json
and publishing the project on npm. An example can be found here: https://github.com/ifad/data-confirm-modal/pull/53, found on this webpacker issue: https://github.com/rails/webpacker/issues/57.Do you plan to support installing with webpacker?