inline babel runtime and preload some visualize modules

This commit is contained in:
spalger 2015-08-07 13:39:14 -07:00
parent 37b1c3a5a1
commit b4fe366c58
6 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View file

@ -12,3 +12,4 @@ target
esvm
.htpasswd
installedPlugins
webpackstats.json

View file

@ -1,5 +1,4 @@
module.exports = {
optional: ['runtime'],
stage: 1,
nonStandard: false
};

View file

@ -44,15 +44,17 @@ module.exports = async (kbnServer, server, config) => {
try {
server.log(
['warning', 'optimize'],
['info', 'optimize'],
`Optimizing bundles for ${bundleIds.join(', ')}. This may take a few minutes.`
);
let start = Date.now();
await optimizer.run();
let seconds = ((Date.now() - start) / 1000).toFixed(2);
server.log(
['info', 'optimize'],
`Optimization of ${bundleIds.join(', ')} complete.`
`Optimization of ${bundleIds.join(', ')} complete in ${seconds} seconds.`
);
} catch (e) {
if (e.stats) {

View file

@ -4,6 +4,9 @@ define(function (require) {
require('plugins/kibana/visualize/editor/editor');
require('plugins/kibana/visualize/wizard/wizard');
require.context('./editor', false);
require.context('./editor/panels', false);
require('ui/routes')
.when('/visualize', {
redirectTo: '/visualize/step/1'

View file

@ -1,7 +1,9 @@
extends ./chrome.jade
block head
link(rel='stylesheet', href='/bundles/commons.js.style.css')
link(rel='stylesheet', href='/bundles/#{app.id}.style.css')
block content
script(src='/bundles/commons.bundle.js' src-map='/bundles/commons.bundle.js.map')
script(src='/bundles/#{app.id}.bundle.js' src-map='/bundles/#{app.id}.bundle.js.map')

File diff suppressed because one or more lines are too long