-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add browserify:dist Target #2741
Conversation
transform: [ | ||
['browserify-versionify', { | ||
placeholder: '../node_modules/vtt.js/dist/vtt.js', | ||
version: 'https://raw.githubusercontent.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we can't link from githubusercontent. This URL should work, though: https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Other than the URL change, LGTM. |
* @param {Mixed} sourceValue | ||
* @return {Object} | ||
*/ | ||
function browserifyGruntCustomizer(objectValue, sourceValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this assume default behavior when returning undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's how the _.merge
customizer argument works.
@gkatsev URL fixed. |
This adds functions for generating browserify configs to avoid any copy/pasting. The dist target specifically replaces the node_modules version of vtt.js with a raw GitHub URL to address multiple reports of 404ing requests for vtt.js.
3b5ef28
to
28f8239
Compare
LGTM |
This adds functions for generating browserify configs to avoid any copy/pasting.
The
browserify:dist
target specifically replaces thenode_modules
version ofvtt.js
with a raw GitHub URL to address multiple reports of 404ing requests forvtt.js
. Thenode_modules
version is maintained for the normalbrowserify:build
target (i.e. for local development).This builds on some of the work introduced in #2426