Webpack: loading jquery.js, jquery plugins, etc

Created on 15 Apr 2016  路  2Comments  路  Source: vuejs-templates/webpack

thanks to #84 , I am able to load third party css, but I am having problem loading jquery, and its plugins.
I had to load it through script-loader, require('script!./vendors/js/jquery.js');.
Just wondering if anyone had experience with it and have better way to do this.

Most helpful comment

Just put it in static and directly reference it in index.html. You don't want to pack it with your app code because jQuery never changes and would be better cached if loaded separately.

All 2 comments

Just put it in static and directly reference it in index.html. You don't want to pack it with your app code because jQuery never changes and would be better cached if loaded separately.

k, thanks Evan.

Was this page helpful?
0 / 5 - 0 ratings