mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
packaging: reduce package size
This commit is contained in:
parent
210df23430
commit
d99c873221
@ -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',
|
||||
],
|
||||
};
|
||||
};
|
||||
|
@ -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');
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user