@@ -25,7 +25,10 @@ const requiredByDLLConfig = module.parent.filename.includes(
2525/**
2626 * Warn if the DLL is not built
2727 */
28- if ( ! requiredByDLLConfig && ! ( fs . existsSync ( dllDir ) && fs . existsSync ( manifest ) ) ) {
28+ if (
29+ ! requiredByDLLConfig &&
30+ ! ( fs . existsSync ( dllDir ) && fs . existsSync ( manifest ) )
31+ ) {
2932 console . log (
3033 chalk . black . bgYellow . bold (
3134 'The DLL files are missing. Sit back while we build them for you with "yarn build-dll"'
@@ -61,9 +64,7 @@ export default merge(baseConfig, {
6164 {
6265 loader : require . resolve ( 'babel-loader' ) ,
6366 options : {
64- plugins : [
65- require . resolve ( 'react-refresh/babel' ) ,
66- ] . filter ( Boolean ) ,
67+ plugins : [ require . resolve ( 'react-refresh/babel' ) ] . filter ( Boolean ) ,
6768 } ,
6869 } ,
6970 ] ,
@@ -152,6 +153,9 @@ export default merge(baseConfig, {
152153 loader : 'less-loader' ,
153154 options : {
154155 lessOptions : {
156+ modifyVars : {
157+ 'primary-color' : 'purple' ,
158+ } ,
155159 javascriptEnabled : true ,
156160 } ,
157161 } ,
@@ -226,7 +230,6 @@ export default merge(baseConfig, {
226230 ] ,
227231 } ,
228232 plugins : [
229-
230233 requiredByDLLConfig
231234 ? null
232235 : new webpack . DllReferencePlugin ( {
@@ -287,13 +290,13 @@ export default merge(baseConfig, {
287290 } ,
288291 before ( ) {
289292 console . log ( 'Starting Main Process...' ) ;
290- spawn ( 'npm' , [ 'run' , 'start:main' ] , {
291- shell : true ,
292- env : process . env ,
293- stdio : 'inherit' ,
294- } )
295- . on ( 'close' , ( code ) => process . exit ( code ) )
296- . on ( 'error' , ( spawnError ) => console . error ( spawnError ) ) ;
293+ spawn ( 'npm' , [ 'run' , 'start:main' ] , {
294+ shell : true ,
295+ env : process . env ,
296+ stdio : 'inherit' ,
297+ } )
298+ . on ( 'close' , ( code ) => process . exit ( code ) )
299+ . on ( 'error' , ( spawnError ) => console . error ( spawnError ) ) ;
297300 } ,
298301 } ,
299302} ) ;
0 commit comments