From 90434668bb754658c7a1ab217fbb8dee8b487d3f Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 18 Sep 2017 18:57:25 +0200 Subject: [PATCH] build: fix payload calculation (#7132) * Due to the recent changes in the Material package, the payload is no longer calculated correctly. All components have been moved into different bundles instead of a single bundle. --- tools/gulp/tasks/payload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gulp/tasks/payload.ts b/tools/gulp/tasks/payload.ts index 6cbbb2a14af..7c002324574 100644 --- a/tools/gulp/tasks/payload.ts +++ b/tools/gulp/tasks/payload.ts @@ -23,8 +23,8 @@ task('payload', ['material:clean-build'], async () => { // Material bundles material_umd: getBundleSize('material.umd.js'), material_umd_minified_uglify: getBundleSize('material.umd.min.js'), - material_fesm_2015: getBundleSize('material.js'), - material_fesm_2014: getBundleSize('material.es5.js'), + material_fesm_2015: getBundleSize('material.js') + getBundleSize('material/!(*.es5).js'), + material_fesm_2014: getBundleSize('material.es5.js') + getBundleSize('material/*.es5.js'), // CDK bundles cdk_umd: getBundleSize('cdk*.umd.js'), cdk_umd_minified_uglify: getBundleSize('cdk*.umd.min.js'),