@micro-app/plugin-koa-static-server

[Plugin] add koa static server plugin.

Usage no npm install needed!

<script type="module">
  import microAppPluginKoaStaticServer from 'https://cdn.skypack.dev/@micro-app/plugin-koa-static-server';
</script>

README

Micro APP Plugin - Koa Static Server

[Plugin] add koa static server plugin.

基于webpack多入口的多仓库业务模块开发的插件应用框架核心库.

Coverage Status CircleCI NPM Version NPM Download

Install

yarn add @micro-app/plugin-koa-static-server

or

npm install -S @micro-app/plugin-koa-static-server

Usage

在项目 根目录micro-app.config.js 文件中配置

module.exports = {
    // ...

    plugins: [ // 自定义插件
        ['@micro-app/plugin-koa-static-server', {
            // root: 1,
        }],
    ],
};