File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ npm-debug.log
66yarn.lock
77/test-app /package-lock.json
88/test-app /.dojorc
9+ .vscode /
Original file line number Diff line number Diff line change @@ -245,7 +245,6 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
245245 staticOnly . push ( 'build-elide' ) ;
246246 entry = {
247247 [ bootstrapEntry ] : removeEmpty ( [
248- existsSync ( mainCssPath ) ? mainCssPath : null ,
249248 '@dojo/framework/shim/Promise' ,
250249 '@dojo/webpack-contrib/bootstrap-plugin/async'
251250 ] )
@@ -500,6 +499,14 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
500499 __MAIN_ENTRY : JSON . stringify ( mainEntryPath ) ,
501500 __DOJO_SCOPE : `'${ libraryName } '`
502501 } ) ,
502+ ! singleBundle &&
503+ existsSync ( mainCssPath ) &&
504+ new WrapperPlugin ( {
505+ test : new RegExp ( `${ mainEntry } .*(\.css$)` ) ,
506+ header : ( ) => {
507+ return readFileSync ( mainCssPath ) ;
508+ }
509+ } ) ,
503510 ! isExperimentalSpeed &&
504511 new OptimizeCssAssetsPlugin ( {
505512 cssProcessor : cssnano ,
You can’t perform that action at this time.
0 commit comments