Skip to content

Commit 5e60711

Browse files
author
Spencer
authored
[dev/build/sass] build stylesheets for disabled plugins too (#54654)
1 parent 6f54c06 commit 5e60711

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/dev/sass/build_sass.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { resolve } from 'path';
2121

22+
import * as Rx from 'rxjs';
2223
import { toArray } from 'rxjs/operators';
2324

2425
import { createFailError } from '@kbn/dev-utils';
@@ -61,9 +62,11 @@ export async function buildSass({ log, kibanaDir, watch }) {
6162

6263
const scanDirs = [resolve(kibanaDir, 'src/legacy/core_plugins')];
6364
const paths = [resolve(kibanaDir, 'x-pack')];
64-
const { spec$ } = findPluginSpecs({ plugins: { scanDirs, paths } });
65-
const enabledPlugins = await spec$.pipe(toArray()).toPromise();
66-
const uiExports = collectUiExports(enabledPlugins);
65+
const { spec$, disabledSpec$ } = findPluginSpecs({ plugins: { scanDirs, paths } });
66+
const allPlugins = await Rx.merge(spec$, disabledSpec$)
67+
.pipe(toArray())
68+
.toPromise();
69+
const uiExports = collectUiExports(allPlugins);
6770
const { styleSheetPaths } = uiExports;
6871

6972
log.info('%s %d styleSheetPaths', watch ? 'watching' : 'found', styleSheetPaths.length);

0 commit comments

Comments
 (0)