yeoman / generator-webapp

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

Gulp Build doesn't include JS lib #654

Closed tuannguyenminh2086 closed 5 years ago

tuannguyenminh2086 commented 7 years ago

Dear,

I added some third-party JS in html: for examples: magicsuggest.js . But when I run GULP BUILD, it doesnt compile in plugins.js.

`

<script src="/bower_components/lodash/dist/lodash.min.js"></script>
<script src="/bower_components/jquery/dist/jquery.js"></script>
<!-- endbuild -->

<!-- build:js scripts/plugins.js -->
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/affix.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/alert.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tooltip.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/modal.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/transition.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/button.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/popover.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/carousel.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/scrollspy.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/collapse.js"></script>
<script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tab.js"></script>
<script src="/bower_components/bootstrap-select/dist/js/bootstrap-select.js"></script>
<script src="/bower_components/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js"></script>
<script src="/bower_components/jQuery-contextMenu/dist/jquery.ui.position.min.js"></script>
<script src="/bower_components/jQuery-contextMenu/dist/jquery.contextMenu.min.js"></script>
<script src="/bower_components/magicsuggest/magicsuggest.js"></script>

<!-- endbuild -->

<!-- build:js scripts/main.js -->
<script src="scripts/main.js"></script>
<!-- endbuild -->`

And here is bower.json

screen shot 2017-04-13 at 11 20 12 am

Is there any limit of number lib we can include? I also have a problem when I add bootstrap-datepicker.js also.

Hope to get your reply soon.

Trost123 commented 7 years ago

Does magicsuggest compile into plugins.js if you don't include all those bootstrap js? This way we could tell if the problem is high file count or magicsuggest\datepicker lib.

UlisesGascon commented 5 years ago

I assume that this bug was fixed in #737. If not we can re-open it again 😃