webpack exclude dependencies in a directory code example Example: import jquery webpack import $ from 'jquery'; $('.my-element').animate(/* ... */);