javve / list.pagination.js

A pagination plugin for List.js
24 stars 23 forks source link

Using w/ Browserify #24

Open ethanclevenger91 opened 7 years ago

ethanclevenger91 commented 7 years ago

I'm trying to get List.js going with Browserify. The top of my scripts file that's being compiled is as such:

var List = require('list.js');
var ListPagination = require('list.pagination.js');

Browserify is throwing two errors: Cannot find module 'classes' and Cannot find module 'event'.

Let me know if there's more information that would be useful.

ethanclevenger91 commented 7 years ago

Temporary workaround was to require the minified version directly:

var ListPagination = require('./../node_modules/list.pagination.js/dist/list.pagination.min.js')
mrcsmcln commented 7 years ago

+1