taro3-config-helper
v1.0.0
Published
taro3 project configuration assistant
Downloads
2
Readme
taro3-config-helper
Taro3 项目配置助手。该项目的目的是为了解决集中式仓库中管理多个 Taro3 项目实例配置生成入口的问题。
Installation
yarn add taro3-config-helper
or
npm install taro3-config-helper
Examples
// taro_project/config/index.js
const path = require('path');
const yourConfig = {
// ...
};
module.exports = function (merge) {
return taroConfig('myapp', path.resolve('./packages/myapp'), {
makeOutputDir: ({projectName, mode, modeShortName, taroEnv, customEnv, outputDir}) => {
return outputDir;
},
makeOutputPath: ({projectName, mode, modeShortName, taroEnv, customEnv, outputDir, outputPath}) => {
return outputPath;
}
}, yourConfig);
};