angularjs-gulp-example | Angular Gulp baseline build | Frontend Framework library
kandi X-RAY | angularjs-gulp-example Summary
kandi X-RAY | angularjs-gulp-example Summary
Angular Gulp baseline build.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angularjs-gulp-example
angularjs-gulp-example Key Features
angularjs-gulp-example Examples and Code Snippets
Community Discussions
Trending Discussions on angularjs-gulp-example
QUESTION
The link at https://github.com/jhades/angularjs-gulp-example/blob/master/gulpfile.js seems to generate a bundle file with the name bundle.a3503174.js
, however, it is referenced in the html as bundle.js
. How does that work? How does the system know where to look at the correct bundle file although the name has been extended with an md5 checksum number?
ANSWER
Answered 2017-Jan-24 at 09:37The link in the question actually uses gulp-cachebust
to both create the bundle and then rewrite the reference to that bundle within index.html to the appropriate filename. The key lies in the statement cachebust.references()
within the following lines of code.
QUESTION
The link https://github.com/jhades/angularjs-gulp-example/blob/master/gulpfile.js has the gulp build-js
task definition using browserify paths
. I don't understand the need for it... wasn't it possible just to specify the entries as entries: './js/**/*.js',
and this would have caused it to search all the sub-directories as well... instead of explicitly specifying paths: ['./js/controllers', './js/services', './js/directives'],
which are all sub-directories of the same parent?
Any hints appreciated.
...ANSWER
Answered 2017-Jan-23 at 03:32The author is using the paths
configuration to enable non-relative require
calls like these:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angularjs-gulp-example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page