const path = require ( "path" ) ; const config = { projectName : "Mortgage Calculator" , date : "2020-11-7" , designWidth : 750 , deviceRatio : { 640 : 2.34 / 2 , 750 : 1 , 828 : 1.81 / 2 } , sourceRoot : "src" , outputRoot : `dist/${ process . env . TARO_ENV }` , plugins : [ ] , defineConstants : { IS_H5 : process . env . TARO_ENV === "h5" , IS_RN : process . env . TARO_ENV === "rn" , IS_WEAPP : process . env . TARO_ENV === "weapp" } , alias : { "@src" : path . resolve ( __dirname , ".." , "src" ) , "@components" : path . resolve ( __dirname , ".." , "src/components" ) , "@scss" : path . resolve ( __dirname , ".." , "src/scss" ) , "@utils" : path . resolve ( __dirname , ".." , "src/utils" ) , "@service" : path . resolve ( __dirname , ".." , "src/service" ) } , copy : { patterns : [ ] , options : { } } , framework : "react" , mini : { postcss : { pxtransform : { enable : true , config : { } } , url : { enable : true , config : { limit : 1024 } } , cssModules : { enable : false , config : { namingPattern : "module" , generateScopedName : "[name]__[local]___[hash:base64:5]" } } } } , h5 : { publicPath : "/Taro-Mortgage-Calculator/" , staticDirectory : "static" , esnextModules : [ 'taro-ui' ] , postcss : { pxtransform : { enable : true , } , autoprefixer : { enable : true , config : { } } , cssModules : { enable : false , config : { namingPattern : "module" , generateScopedName : "[name]__[local]___[hash:base64:5]" } } } } , rn : { output : { ios : 'ios/main.jsbundle' , iosAssetsDest : 'ios' , android : 'android/index.android.bundle' , androidAssetsDest : 'android' } , } } ; module . exports = function ( merge ) { if ( process . env . NODE_ENV === "development" ) { return merge ( { } , config , require ( "./dev" ) ) ; } return merge ( { } , config , require ( "./prod" ) ) ; } ;