Added the MP4 and WOFF2 cases to the AssetExtension enumeration.
This commit is contained in:
@@ -53,38 +53,44 @@ private extension AssetExtensionTests {
|
||||
|
||||
static let extensions: [AssetExtension] = [
|
||||
.css,
|
||||
.js,
|
||||
.png,
|
||||
.jpg,
|
||||
.webp,
|
||||
.ico,
|
||||
.jpg,
|
||||
.js,
|
||||
.mp4,
|
||||
.png,
|
||||
.svg,
|
||||
.txt,
|
||||
.webmanifest,
|
||||
.webp,
|
||||
.woff2,
|
||||
.xml
|
||||
]
|
||||
static let contentTypes: [String] = [
|
||||
"text/css",
|
||||
"text/javascript",
|
||||
"image/png",
|
||||
"image/jpeg",
|
||||
"image/webp",
|
||||
"image/vnd.microsoft.icon",
|
||||
"image/jpeg",
|
||||
"text/javascript",
|
||||
"video/mp4",
|
||||
"image/png",
|
||||
"image/svg+xml",
|
||||
"text/plain",
|
||||
"application/manifest+json",
|
||||
"image/webp",
|
||||
"font/woff2",
|
||||
"application/xml"
|
||||
]
|
||||
static let folders: [String?] = [
|
||||
"css",
|
||||
nil,
|
||||
"img",
|
||||
"js",
|
||||
nil,
|
||||
"media",
|
||||
"media",
|
||||
"video",
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
"img",
|
||||
"font",
|
||||
nil
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user