Commit d99c8732 by Torkel Ödegaard

packaging: reduce package size

parent 210df234
...@@ -8,9 +8,10 @@ module.exports = function(config) { ...@@ -8,9 +8,10 @@ module.exports = function(config) {
css: ['<%= genDir %>/css'], css: ['<%= genDir %>/css'],
packaging: [ packaging: [
'<%= tempDir %>/public/vendor/npm/rxjs', '<%= tempDir %>/public/vendor/npm/rxjs',
'<%= tempDir %>/public/vendor/npm/teather', '<%= tempDir %>/public/vendor/npm/tether',
'<%= tempDir %>/public/vendor/npm/teather-drop', '<%= tempDir %>/public/vendor/npm/tether-drop',
'<%= tempDir %>/public/**/*.map', '<%= tempDir %>/public/**/*.map',
'<%= tempDir %>/public/**/*.ts',
], ],
}; };
}; };
...@@ -25,14 +25,6 @@ module.exports = function(grunt) { ...@@ -25,14 +25,6 @@ module.exports = function(grunt) {
builder builder
.bundle(expression, 'public_gen/app/app_bundle.js') .bundle(expression, 'public_gen/app/app_bundle.js')
.then(function(res) { .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(); done();
grunt.task.run('concat:bundle_and_boot'); grunt.task.run('concat:bundle_and_boot');
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment