Skip to content

LeeHyungGeun/omi-prerender-plugin

Repository files navigation

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

About

Omi Prerender Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published