yeoman / generator-webapp

A gulp.js generator for modern webapps
3.77k stars 708 forks source link

run with ES% #782

Closed xavierartot closed 4 years ago

xavierartot commented 4 years ago

Hi, How can I setup to run ES5 and jQuery? Thanks

silvenon commented 4 years ago

I'm not sure what you mean by "ES5", but for jQuery you can install it:

yarn add jquery

then in your index.html add jQuery between the build:js scripts/vendor.js comment directives:

<!-- build:js scripts/vendor.js -->
<script type="text/javascript" src="/node_modules/jquery/dist/jquery.js"></script>
<!-- endbuild -->