Skip to content

Latest commit

 

History

History
35 lines (33 loc) · 1.13 KB

foxman.md

File metadata and controls

35 lines (33 loc) · 1.13 KB

如何编写一个贴合工程开发情况的 Foxman 配置文件?

Foxman 目前具备以下主要功能

基础的 Foxman 配置

const path = require('path');
module.exports = {
    /** nei: { key: 'xxxxxxxx' }, **/
    plugins: [],
    preCompilers: [],
    server: {
        routers: [],
        port: 9999,
        viewRoot: path.resolve(__dirname, 'template'),
        syncData: path.resolve(__dirname, 'mock/sync/'),
        asyncData: path.resolve(__dirname, 'mock/async'),
        static: [ 
            path.resolve(__dirname, './src')
        ]
    }
};