packaging: reduce package size

This commit is contained in:
Torkel Ödegaard 2017-09-18 09:02:45 +02:00
parent 210df23430
commit d99c873221
2 changed files with 3 additions and 10 deletions

View File

@ -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',
],
};
};

View File

@ -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');
})