babel-plugin-base-path

0.1.3 • Public • Published

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.

/babel-plugin-base-path/

    Package Sidebar

    Install

    npm i babel-plugin-base-path

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • timkendall