meta-inject-webpack-plugin

1.0.4 • Public • Published

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">'
          ]
      })
  ]
}
  1. Build it!

And you can check out these meta tag in after-built html file.

License

MIT

Copyright(c) 2020-present, @sevenschan

Readme

Keywords

none

Package Sidebar

Install

npm i meta-inject-webpack-plugin

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.5 kB

Total Files

3

Last publish

Collaborators

  • sevenschan