From d99c87322172d27faf021b1cf714af65710d4ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 18 Sep 2017 09:02:45 +0200 Subject: [PATCH] packaging: reduce package size --- tasks/options/clean.js | 5 +++-- tasks/systemjs_task.js | 8 -------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tasks/options/clean.js b/tasks/options/clean.js index d58538ca9ff..98fa0f0fab6 100644 --- a/tasks/options/clean.js +++ b/tasks/options/clean.js @@ -8,9 +8,10 @@ module.exports = function(config) { css: ['<%= genDir %>/css'], packaging: [ '<%= tempDir %>/public/vendor/npm/rxjs', - '<%= tempDir %>/public/vendor/npm/teather', - '<%= tempDir %>/public/vendor/npm/teather-drop', + '<%= tempDir %>/public/vendor/npm/tether', + '<%= tempDir %>/public/vendor/npm/tether-drop', '<%= tempDir %>/public/**/*.map', + '<%= tempDir %>/public/**/*.ts', ], }; }; diff --git a/tasks/systemjs_task.js b/tasks/systemjs_task.js index c262bc0865a..96955726beb 100644 --- a/tasks/systemjs_task.js +++ b/tasks/systemjs_task.js @@ -25,14 +25,6 @@ module.exports = function(grunt) { builder .bundle(expression, 'public_gen/app/app_bundle.js') .then(function(res) { - console.log('Build complete', res.modules); - - for (var i = 0; i < res.modules.length; i++) { - var modulePath = path.join('public_gen', res.modules[i]); - console.log(modulePath); - grunt.file.delete(modulePath); - } - done(); grunt.task.run('concat:bundle_and_boot'); })