Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbc44f5

Browse files
authored
Core: Exclude callbacks & deferred modules in the slim build as well
So far, the slim build only excluded ajax & effects modules. As many web appsright now rely on native Promises, often with a polyfill for legacy browsers,deferred & callbacks modules are not that useful for sites that already excludeajax & effects modules.This decreases the gzipped minified size of the slim module by 1760 bytes,to 19706 bytes (below 20k!).Closesgh-4553
1 parentff28199 commitfbc44f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎build/tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ module.exports = function( grunt ) {
306306
// the official slim build
307307
.reduce((acc,elem)=>acc.concat(
308308
elem==="slim" ?
309-
["-ajax","-effects"] :
309+
["-ajax","-callbacks","-deferred","-effects"] :
310310
[elem]
311311
),[])
312312

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp