drvic10k / bootstrap-sortable

adding sorting ability to bootstrap table
MIT License
513 stars 131 forks source link

add main field to support npm loading #103

Closed zalox closed 7 years ago

zalox commented 8 years ago

Addresses #92, with the main field it is possible to use with npm.

drvic10k commented 8 years ago

is that enough to pull also the css through npm?

zalox commented 8 years ago

Hi, I can load css by require("bootstrap-sortable/Contents/boostrap-sortable.css") if I use a bundler like webpack that can load css through javascript.

Some packages have a "npm.js" file that exports the module correctly with CSS. I'm not familiar with this, but with the main field, we at least make it possible to download the source through package managers like yarn and npm.

amureki commented 7 years ago

Hi @drvic10k @zalox

As far as I understand, this should be totally enough for proper publishing. Can we try to publish it?

I am ready to test published version, ping me if you need help with that!

P.S. And thank you for the package! 👍

drvic10k commented 7 years ago

sorry for the dalay, can you try it please after the merge?