This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
fix bower_component loading problem on _gulpfile template #1408
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before:
All the packages installed via bower were not automatically inserted into
index.html
. The reason iswiredep
is not properly configured with the proper path tobower_components
.In addition, the server middleware was also not configured to use
bower_components
so even if users add the script tags to packages inbower_components
manually, the server would return404 not found
to the browser requests.A final problem addressed in this pull request is that the
watch
task was not monitoringindex.html
so the browser was not refreshing when that was changed.The consequence of these problems is when running
gulp serve
, the user is met with a page that has nocss
and nojs
libraries.After:
• Fixed
wiredep
directory to proper location (outside of the app folder)• Started watching
index.html
(via paths.views.main)• Added bower_component as a resource for the server middleware