1.0.10 • Published 6 years ago

umi-pre-render v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
6 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

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago