You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great library, works better out of the box than vue-sortable in my opinion.
One improvement I think is to only required the needed lodash modules for your directive.
Now the entire lodash library is included (about 80kb minified): var _ = require("lodash");
You could simply require the needed modules (about 21kb minified): var _clone = require("lodash/clone"); var _merge = require("lodash/merge"); var _isString = require("lodash/isString"); var _each = require("lodash/each");
.. which would save about 60kb.
The text was updated successfully, but these errors were encountered:
Seems a good idea. I'm now working on #8 that may increase the number of lodash functions in use by Vue.Dragable.For. So, I will consider issue#10 once I am done with #8 .
Great library, works better out of the box than vue-sortable in my opinion.
One improvement I think is to only required the needed lodash modules for your directive.
Now the entire lodash library is included (about 80kb minified):
var _ = require("lodash");
You could simply require the needed modules (about 21kb minified):
var _clone = require("lodash/clone");
var _merge = require("lodash/merge");
var _isString = require("lodash/isString");
var _each = require("lodash/each");
.. which would save about 60kb.
The text was updated successfully, but these errors were encountered: