@macfja/rollup-plugin-prompt-replace

Rollup plugin that ask for text to replace

Usage no npm install needed!

<script type="module">
  import macfjaRollupPluginPromptReplace from 'https://cdn.skypack.dev/@macfja/rollup-plugin-prompt-replace';
</script>

README

Rollup plugin prompt replace

Rollup plugin that ask for text to replace


This plugin use @rollup/plugin-replace under the hood. Any options of @rollup/plugin-replace can be used.

Installation

npm install --save-dev @macfja/rollup-plugin-prompt-replace

Usage

import replace from "@macfja/rollup-plugin-prompt-replace"

module.exports = {
    ...
        plugins: [replace({ '__test_api_endpoint__': 'URL to the test API: ' })]
};

Contributing

Contributions are welcome. Please open up an issue or create PR if you would like to help out.

Read more in the Contributing file

License

The MIT License (MIT). Please see License File for more information.