0.1.3 • Published 6 years ago

babel-plugin-base-path v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-base-path

Note: This is still experimental! Use at your own risk.

Adds first-class support for transforming relative asset paths to absolute one's.

Quickstart

Install the plugin:

yarn add --dev babel-plugin-base-path

Add it to your Babel configuration:

{
  "plugins": [
    ["base-path", {
      "base": "https://foo.com"
    }]
  ]
}

Documentation

TODO

License

Licensed under the MIT License, Copyright © 2017 Tim Kendall.

See LICENSE.md for more information.