You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
683 B

const config = {
projectName: 'taro-sample-weapp',
date: '2018-9-10',
designWidth: 750,
deviceRatio: {
'640': 2.34 / 2,
'750': 1,
'828': 1.81 / 2
},
sourceRoot: 'src',
outputRoot: 'dist',
framework: 'react',
defineConstants: {
},
copy: {
patterns: [],
options: {}
},
weapp: {
compile: {
exclude: []
},
module: {
}
},
h5: {
publicPath: '/',
staticDirectory: 'static',
module: {
postcss: {
}
}
}
}
module.exports = function (merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'))
}
return merge({}, config, require('./prod'))
}