meta-inject-webpack-plugin
v1.0.4
Published
Webpack plugin to inject meta tag to Html.
Downloads
5
Readme
MetaInjectWebpackPlugin
Feature
Webpack plugin to inject meta tag to Html.
Use
Step 1. configration
Notice that: HtmlWebpackPlugin is necessary.
const MetaInjectWebpackPlugin = require('meta-inject-webpack-plugin')
// Webapck config
const webpackConfig = {
// ...
plugin: [
// ...
new MetaInjectWebpackPlugin({
meta: [
{
name: 'renderer',
content: 'webket'
},
'<meta name="test" content="test">'
]
})
]
}
- Build it!
And you can check out these meta tag in after-built html file.
License
Copyright(c) 2020-present, @sevenschan