gulp-cdnizer
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "gulp-cdnizer", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "A gulp plugin for replacing local links with CDN links, includes fallbacks and customization", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"gulp-util": "^3.0.0", | ||
"cdnizer": "^1.1.4" | ||
"cdnizer": "^1.1.6" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
}, | ||
"licenses": "MIT" | ||
"license": "MIT" | ||
} |
@@ -90,6 +90,6 @@ # gulp-cdnizer | ||
files: [ | ||
// This file is on the default CDN, and will replaced with //my.cdn.host/base/js/app.js | ||
'js/app.js', | ||
// On Google's public CDN | ||
@@ -102,3 +102,3 @@ { | ||
}, | ||
// On Firebase's public CDN | ||
@@ -114,3 +114,3 @@ { | ||
``` | ||
Alternatively, you can just pass in the files array if you don't need to provide any options, and only have custom files: | ||
@@ -234,3 +234,3 @@ | ||
### cdnizer( options | files ) | ||
@@ -247,3 +247,3 @@ | ||
Type: `String` | ||
Type: `String` | ||
Default: `''` *(disabled)* | ||
@@ -255,3 +255,3 @@ | ||
Type: `String` | ||
Type: `String` | ||
Default: `'${ defaultCDNBase }/${ filepathRel }'` | ||
@@ -263,3 +263,3 @@ | ||
Type: `String` | ||
Type: `String` | ||
Default: `''` | ||
@@ -286,7 +286,7 @@ | ||
Allow for file names that optionally have `.min` inserted before the file extension (but after rev, if enabled). This allows you to use the base name for a file, and have `cndizer` match the minified name. | ||
Allow for file names that optionally have `.min` inserted before the file extension (but after rev, if enabled). This allows you to use the base name for a file, and have `cdnizer` match the minified name. | ||
#### options.fallbackScript | ||
Type: `String` | ||
Type: `String` | ||
Default: | ||
@@ -308,3 +308,3 @@ | ||
Type: `String` | ||
Type: `String` | ||
Default: `'<script>if(!(${ test })) cdnizerLoad("${ filepath }");</script>'` | ||
@@ -316,3 +316,3 @@ | ||
Type: `String` | ||
Type: `String` | ||
Default: null | ||
@@ -326,3 +326,3 @@ | ||
Type: `Array` | ||
Type: `Array` | ||
Default: `[]` | ||
@@ -366,3 +366,3 @@ | ||
Type: `Array` | ||
Type: `Array` | ||
Default: (none) **required** | ||
@@ -451,3 +451,3 @@ | ||
> Type: `String` | ||
> Type: `String` | ||
> Default: (none) **required** | ||
@@ -459,3 +459,3 @@ | ||
> Type: `String` | ||
> Type: `String` | ||
> Default: (none) | ||
@@ -469,3 +469,3 @@ | ||
> Type: `String` | ||
> Type: `String` | ||
> Default: `options.defaultCDN` | ||
@@ -497,3 +497,3 @@ | ||
> Type: `String` | ||
> Type: `String` | ||
> Default: (none) | ||
@@ -500,0 +500,0 @@ |
25713
Updatedcdnizer@^1.1.6