Insert jquery on web starter kit

一世执手 提交于 2019-12-11 13:35:43

问题


I want to add jquery for product dependency. I have already install gulp jquery via npm command. How to insert script in my index html file?

But when I have run command gulp serve:dist it's not showing on scripts folder or even in my project files.


回答1:


gulp-jquery is not meant to install jQuery to your project dependencies, but meant to build a subset of jQuery which you can use for your build. How this can be achieved is in the docs of this plugin.

With the web starter kit, you can't just wire up dependencies to your project, you would have to add the manually.

Best way to install jQuery: Either via npm (npm install --save jquery) or bower (bower install --save jquery).



来源:https://stackoverflow.com/questions/29826470/insert-jquery-on-web-starter-kit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!