webpack load library in <head> code example Example: import jquery webpack import $ from 'jquery'; $('.my-element').animate(/* ... */);