Skip to content

Commit 0350159

Browse files
committed
Build: Make cdn_origin setting optional
Follows-up 6b39592. Not needed anymore. Keep the override-ability for now, but make it no longer required so that we can use the same three settings (url, username, password) for all WordPress-built documentation sites.
1 parent 6c006f7 commit 0350159

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ grunt.registerTask( "build-index", function() {
323323

324324
function cdnSriLink( file, label ) {
325325
var sri = "sha256-" + sriHashes[ `@cdn/${ file }` ].hashes.sha256,
326-
cdnOrigin = grunt.config( "wordpress" ).cdn_origin;
326+
cdnOrigin = grunt.config( "wordpress" ).cdn_origin || "https://code.jquery.com";
327327
return `<a
328328
class='open-sri-modal'
329329
href='${ cdnOrigin }/${ file }'

config-sample.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"url": "vagrant.codeorigin.jquery.com",
33
"username": "admin",
4-
"password": "secret",
5-
"cdn_origin": "https://code.jquery.com"
4+
"password": "secret"
65
}

0 commit comments

Comments
 (0)