reduce initial bundle size for console and index management (#206887)

## Summary

This moves the scss content from an initial bundle load to an async
bundle load for the dev console and index management.

For testing - make sure the mapping editor and the dev console render
correctly. It will be abundantly clear if they don't.
This commit is contained in:
Matthew Kime 2025-01-17 05:35:45 -06:00 committed by GitHub
parent 9bc2438eed
commit 739e8cc57f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 2 deletions

View file

@ -7,6 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/
import '../index.scss';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { HttpSetup, NotificationsSetup, DocLinksStart } from '@kbn/core/public';

View file

@ -7,7 +7,6 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/
import './index.scss';
import { PluginInitializerContext } from '@kbn/core/public';
import { ConsoleUIPlugin } from './plugin';

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import '../index.scss';
import { i18n } from '@kbn/i18n';
import SemVer from 'semver/classes/semver';
import { CoreSetup, CoreStart, ScopedHistory } from '@kbn/core/public';

View file

@ -5,7 +5,6 @@
* 2.0.
*/
import './index.scss';
import { PluginInitializerContext } from '@kbn/core/public';
import { IndexMgmtUIPlugin } from './plugin';