Skip to content

Commit 81089a7

Browse files
committed
If main.css exists, pass path down to bootstrap plugin
1 parent 7b72a3f commit 81089a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
498498
args.locale && new CldrPlugin(),
499499
new webpack.DefinePlugin({
500500
__MAIN_ENTRY: JSON.stringify(mainEntryPath),
501+
__MAIN_CSS_PATH: JSON.stringify(existsSync(mainCssPath) ? mainCssPath : null),
501502
__DOJO_SCOPE: `'${libraryName}'`
502503
}),
503504
!isExperimentalSpeed &&
@@ -515,6 +516,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
515516
!singleBundle &&
516517
new BootstrapPlugin({
517518
entryPath: mainEntryPath,
519+
cssPath: existsSync(mainCssPath) ? mainCssPath : null,
518520
shimModules: [
519521
{
520522
module: '@dojo/framework/shim/IntersectionObserver',

0 commit comments

Comments
 (0)