babel-plugin-inject-banner

Inject code into every source file

Usage no npm install needed!

<script type="module">
  import babelPluginInjectBanner from 'https://cdn.skypack.dev/babel-plugin-inject-banner';
</script>

README

Babel Plugin / Inject Banner Code

This is pretty simple and takes pretty much no explanation - just read usage

Install

npm i --save-dev babel-plugin-inject-banner

Usage

//.babelrc

{
    plugins: [
        ['babel-plugin-inject-banner',{
            bannerCode: "console.log('hello from your banner');"
        }]
    ]
}