Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

misteroneill
Copy link
Member

This adds functions for generating browserify configs to avoid any copy/pasting.

The browserify: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. The node_modules version is maintained for the normal browserify:build target (i.e. for local development).

This builds on some of the work introduced in #2426

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'
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gkatsev
Copy link
Member

gkatsev commented Oct 26, 2015

Other than the URL change, LGTM.

* @param {Mixed} sourceValue
* @return {Object}
*/
function browserifyGruntCustomizer(objectValue, sourceValue) {
Copy link
Member

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?

Copy link
Member Author

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.

@misteroneill
Copy link
Member Author

@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.
@gkatsev
Copy link
Member

gkatsev commented Oct 28, 2015

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants