1.0.10 • Published 5 years ago

umi-pre-render v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

umi-pre-render

umi 预渲染插件

Getting Started

To begin, you'll need to install umi-pre-render:

$ npm install umi-pre-render --save-dev

Work

export default [
  ['umi-pre-render',
    {
      exclude:? string[]
      disablePolyfill:? boolean
      visible:? boolean
      //{ g_lang: 'zh-CN' } => global.window.g_lang / global.g_lang
      runInMockContext:? {}
      // use renderToStaticMarkup
      staticMarkup:? boolean
      // htmlSuffix
      htmlSuffix:? boolean
      // checkSum, default: false
      checkSum:? boolean
      // render执行完后,对生成的html再次修改
      postProcessHtml:? ($, path) => CheerioStatic,
      // 替换默认的render函数,
      diyRender:? (
        ReactDOMServer,
        htmlElement,
        _getDocumentHandler
      ) => Promise<string>
    }
  ]
]
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago