0.0.3 • Published 5 years ago

omi-prerender-plugin v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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()
]