marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.02k stars 1.33k forks source link

how to load store as require AMD module? #217

Open trivedi1980 opened 7 years ago

trivedi1980 commented 7 years ago

i have been struggling on how to load this "store" as AMD module with specific storage library. I tried different ways but unsuccessful. Could you pls help me with this?

here is what i tried so far:

  1. i have added store.everything.min.js in lib directory
  2. in require.config.js, i have provided "store" module pointing to above minified js file.

and in my AMD module, i have added "store" as dependency. I am getting store object defaults to "localStorage". how do i get other storage modules if I want?