babel-plugin-inject-import

1.0.1 • Public • Published

babel-plugin-inject-import

Babel plugin to inject some custom import statement.

Usage

Via .babel.config.json (Recommended)

.babel.config.json

{
    "plugins": [
        [
            "inject-import", 
            {
                "inject": [{
                    "name": null,
                    "path": "./style.css",
                    "file": "src/GanttReact/index.js"
                },{
                    "name": "test",
                    "path": "test",
                    "file": "src/GanttReact/index.js"
                }]
            }
        ]
    ]
}

Package Sidebar

Install

npm i babel-plugin-inject-import

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

2.42 kB

Total Files

3

Last publish

Collaborators

  • j.k.bi