const configFactory = require ( './webpack.base' ) ; process . env . BABEL_ENV = 'production' ; process . env . NODE_ENV = 'production' ; type { import ( 'webpack' ) . webpack . Configuration } module . exports = { ... configFactory . createDefaultConfig ( ) , mode : 'production' , optimization : { ... configFactory . createDefaultConfig ( ) . optimization , minimize : true , } , module : { strictExportPresence : true , rules : [ configFactory . rules . fonts ( ) , configFactory . rules . svg ( ) , configFactory . rules . images ( ) , configFactory . rules . jsx ( ) , configFactory . rules . css ( ) , ] , } , plugins : [ ] , } ;