@micro-app/plugin-merge-public-cli
v0.0.2
Published
[Plugin] merge public files cli plugin.
Downloads
3
Maintainers
Readme
Micro APP Plugin - Merge-Public CLI
[Plugin] merge public files cli plugin.
基于webpack多入口的多仓库业务模块开发的插件应用框架核心库.
Install
yarn add @micro-app/plugin-merge-public-cli
or
npm install -S @micro-app/plugin-merge-public-cli
Usage
在项目 根目录
的 micro-app.config.js
文件中配置
module.exports = {
// ...
plugins: [ // 自定义插件
['@micro-app/plugin-merge-public-cli', {
dest: PUBLIC, // 目的地
origin: {
[key]: value,
}, // 原地址map
handler(key, mc, config, api) {
// do something
},
}],
],
};