Skip to content

Commit e1fd8de

Browse files
committed
maint(Build): Optimize modernizr configuration.
Remove unnecessary tests in .modernizrrc.js and slim down the build size.
1 parent 66d8fcc commit e1fd8de

File tree

1 file changed

+3
-68
lines changed

1 file changed

+3
-68
lines changed

.modernizrrc.js

Lines changed: 3 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
module.exports = {
22
"classPrefix": "",
3-
"options": [
4-
"addTest",
5-
"atRule",
6-
"domPrefixes",
7-
"hasEvent",
8-
"html5shiv",
9-
"html5printshiv",
10-
"load",
11-
"mq",
12-
"prefixed",
13-
"prefixes",
14-
"prefixedCSS",
15-
"setClasses",
16-
],
3+
"enableClasses": true,
4+
"enableJSClass": true,
5+
"options": ["setClasses"],
176
"feature-detects": [
187
"a/download",
19-
"applicationcache",
20-
"blob",
21-
"canvas",
22-
"canvas/blending",
23-
"canvas/todataurl",
24-
"canvas/winding",
25-
"canvastext",
26-
"contenteditable",
27-
"contextmenu",
28-
"cookies",
29-
"cors",
30-
"custom-elements",
318
"css/all",
329
"css/animations",
3310
"css/appearance",
@@ -104,61 +81,19 @@ module.exports = {
10481
"css/vwunit",
10582
"css/will-change",
10683
"css/wrapflow",
107-
"dom/classlist",
108-
"dom/createElement-attrs",
109-
"dom/dataset",
110-
"dom/documentfragment",
111-
"dom/hidden",
112-
"dom/microdata",
113-
"dom/mutationObserver",
114-
"dom/passiveeventlisteners",
11584
"event/deviceorientation-motion",
116-
"event/oninput",
117-
"eventlistener",
11885
"exif-orientation",
11986
"forms/capture",
12087
"forms/fileinput",
121-
"forms/fileinputdirectory",
122-
"forms/formattribute",
123-
"forms/placeholder",
124-
"forms/requestautocomplete",
12588
"forms/validation",
12689
"inputtypes",
12790
"fullscreen-api",
128-
"hashchange",
12991
"hiddenscroll",
130-
"history",
131-
"htmlimports",
132-
"iframe/sandbox",
133-
"iframe/seamless",
134-
"iframe/srcdoc",
135-
"json",
13692
"mediaquery/hovermq",
13793
"mediaquery/pointermq",
138-
"notification",
139-
"pagevisibility-api",
140-
"performance",
141-
"postmessage",
142-
"proximity",
143-
"queryselector",
144-
"requestanimationframe",
145-
"storage/localstorage",
146-
"storage/sessionstorage",
147-
"storage/websqldatabase",
14894
"touchevents",
149-
"unicode",
150-
"unicode-range",
151-
"url/bloburls",
152-
"url/data-uri",
153-
"url/parser",
154-
"url/urlsearchparams",
155-
"userdata",
15695
"vibration",
157-
"video",
15896
"video/autoplay",
159-
"video/crossorigin",
16097
"video/loop",
161-
"video/preload",
162-
"xdomainrequest",
16398
],
16499
};

0 commit comments

Comments
 (0)