New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

omi-prerender-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omi-prerender-plugin

A plugin to prerender for [Omi](https://github.com/Tencent/omi) framework.

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
5
-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

Omi Prerender Plugin

No config, prerender plugin for Omi framework with html-webpack-plugin.

npm version npm downloads Dependency Status license

NPM

omi-prerender-plugin

You can prerender using omi-prerender-plugin in webpack configuration with html-webpack-plugin.

Usage

const OmiPrerenderPlugin = require('omi-prerender-plugin');

plugins: [
  new HtmlWebpackPlugin({
    inject: true,
    chunks:['index'],
    template: 'index.html'
    filename: 'index.html',
    minify: {
      removeComments: true,
      collapseWhitespace: true,
      removeRedundantAttributes: true,
      useShortDoctype: true,
      removeEmptyAttributes: true,
      removeStyleLinkTypeAttributes: true,
      keepClosingSlash: true,
      minifyJS: true,
      minifyCSS: true,
      minifyURLs: true,
    },
  }))
  new OmiPrerenderPlugin()
]

Keywords

omi

FAQs

Package last updated on 09 Jan 2019

Related posts