1.0.4 • Published 4 years ago

meta-inject-webpack-plugin v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago