mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
inline babel runtime and preload some visualize modules
This commit is contained in:
parent
37b1c3a5a1
commit
b4fe366c58
6 changed files with 10 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,3 +12,4 @@ target
|
|||
esvm
|
||||
.htpasswd
|
||||
installedPlugins
|
||||
webpackstats.json
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
module.exports = {
|
||||
optional: ['runtime'],
|
||||
stage: 1,
|
||||
nonStandard: false
|
||||
};
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue