This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
docs/config/services/deployments Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,23 @@ var angularCodeUrl = '//code.angularjs.org/';
7
7
8
8
var cdnUrl = googleCdnUrl + versionInfo . cdnVersion ;
9
9
10
- // The "examplesCdnUrl " here applies to the examples when they are opened in plnkr.co.
10
+ // The "examplesDependencyPath " here applies to the examples when they are opened in plnkr.co.
11
11
// The embedded examples instead always include the files from the *default* deployment,
12
12
// to ensure that the source files are always available.
13
13
// The plnkr examples must always use the code.angularjs.org source files.
14
14
// We cannot rely on the CDN files here, because they are not deployed by the time
15
15
// docs.angularjs.org and code.angularjs.org need them.
16
- var examplesDependencyPath = versionInfo . currentVersion . isSnapshot ?
17
- ( angularCodeUrl + 'snapshot' ) :
18
- ( angularCodeUrl + ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ) ;
16
+ var versionPath = versionInfo . currentVersion . isSnapshot ?
17
+ 'snapshot' :
18
+ ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ;
19
+ var examplesDependencyPath = angularCodeUrl + versionPath + '/' ;
19
20
20
21
module . exports = function productionDeployment ( getVersion ) {
21
22
return {
22
23
name : 'production' ,
23
24
examples : {
24
25
commonFiles : {
25
- scripts : [ examplesDependencyPath + '/ angular.min.js' ]
26
+ scripts : [ examplesDependencyPath + 'angular.min.js' ]
26
27
} ,
27
28
dependencyPath : examplesDependencyPath
28
29
} ,
You can’t perform that action at this time.
0 commit comments