/MicroApp-Plugin-Koa-Static-Server

[Plugin] add koa static server plugin.

Primary LanguageJavaScriptMIT LicenseMIT

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,
        }],
    ],
};