1.0.1 • Published 7 years ago

superfans_config_injection_plugin v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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 superfans_config_injection_plugin

const ConfigInject = require('superfans_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

1.0.1

7 years ago

1.0.0

7 years ago