config_injection_plugin

1.0.4 • Public • Published

HTMLWebpackPlugin enhancement plugin

before html file generated by htmlwebpackplugin, insert a custom inline script into the html file's header tag, useful in dev environment where mock data is required.

usage:

npm i -D config_injection_plugin

const ConfigInject = require('config_injection_plugin');
plugins: [

...

new ConfigInject({
    $config:"your js script file's relative path"
}),

...

]

this will inject the specified file's evaled result into the generated html's header tag

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    1
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i config_injection_plugin

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • crazyxhz