Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Apr 21, 2020
1 parent 1fd2e06 commit 237e2c5
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 30 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
],
},
{
test: /\.(scss|css)$/,
test: /\.scss$/,
exclude: /node_modules/,
oneOf: [
{
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions src/core/public/core_system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* under the License.
*/

import './core.css';

import { CoreId } from '../server';
import { PackageInfo, EnvironmentMode } from '../server/types';
import { CoreSetup, CoreStart } from '.';
Expand Down
3 changes: 3 additions & 0 deletions src/core/public/entry_point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
/**
* This is the entry point used to boot the frontend when serving a application
* that lives in the Kibana Platform.
*
* Any changes to this file should be kept in sync with
* src/legacy/ui/ui_bundles/app_entry_template.js
*/

import './index.scss';
Expand Down
1 change: 1 addition & 0 deletions src/core/public/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// import this explicitly
@import '../../legacy/ui/public/styles/_styling_constants';

@import './core';
@import './chrome/index';
@import './overlays/index';
@import './rendering/index';
Expand Down
3 changes: 3 additions & 0 deletions src/legacy/ui/ui_bundles/app_entry_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export const appEntryTemplate = bundle => `
*
* This is programmatically created and updated, do not modify
*
* Any changes to this file should be kept in sync with
* src/core/public/entry_point.ts
*
* context: ${bundle.getContext()}
*/
Expand Down
4 changes: 2 additions & 2 deletions src/legacy/ui/ui_render/bootstrap/template.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
}

load([
{{#each jsDependencies}}
{{#each jsDependencyPaths}}
'{{this}}',
{{/each}}
], function () {
load([
'{{entryBundle}}',
'{{entryBundlePath}}',
{{#each styleSheetPaths}}
'{{this}}',
{{/each}}
Expand Down
9 changes: 5 additions & 4 deletions src/legacy/ui/ui_render/ui_render_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ export function uiRenderMixin(kbnServer, server, config) {
? [
`${basePath}/bundles/kbn-ui-shared-deps/${UiSharedDeps.darkCssDistFilename}`,
`${basePath}/node_modules/@kbn/ui-framework/dist/kui_dark.css`,
`${regularBundlePath}/dark_theme.style.css`,
]
: [
`${basePath}/bundles/kbn-ui-shared-deps/${UiSharedDeps.lightCssDistFilename}`,
`${basePath}/node_modules/@kbn/ui-framework/dist/kui_light.css`,
`${regularBundlePath}/light_theme.style.css`,
]),
`${regularBundlePath}/${darkMode ? 'dark' : 'light'}_theme.style.css`,
`${regularBundlePath}/commons.style.css`,
...(isCore
? []
Expand All @@ -135,7 +136,7 @@ export function uiRenderMixin(kbnServer, server, config) {
]),
];

const jsDependencies = [
const jsDependencyPaths = [
...UiSharedDeps.jsDepFilenames.map(
filename => `${regularBundlePath}/kbn-ui-shared-deps/${filename}`
),
Expand All @@ -155,9 +156,9 @@ export function uiRenderMixin(kbnServer, server, config) {
const bootstrap = new AppBootstrap({
templateData: {
darkMode,
jsDependencies,
jsDependencyPaths,
styleSheetPaths,
entryBundle: isCore
entryBundlePath: isCore
? `${regularBundlePath}/core/core.entry.js`
: `${regularBundlePath}/${app.getId()}.bundle.js`,
},
Expand Down

0 comments on commit 237e2c5

Please sign in to comment.