Licence
MIT
Version
0.0.3
Deps
2
Size
8 kB
Vulns
0
Weekly
0
Omi Prerender Plugin
No config, prerender plugin for Omi framework with html-webpack-plugin.
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()
]
