https://github.com/macfja/rollup-plugin-prompt-replace
Rollup plugin that ask for text to replace
https://github.com/macfja/rollup-plugin-prompt-replace
ask prompt replace replace-text rollup rollup-plugin
Last synced: 12 months ago
JSON representation
Rollup plugin that ask for text to replace
- Host: GitHub
- URL: https://github.com/macfja/rollup-plugin-prompt-replace
- Owner: MacFJA
- License: mit
- Created: 2021-09-05T14:14:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-05T14:42:39.000Z (over 4 years ago)
- Last Synced: 2024-04-27T03:04:11.318Z (almost 2 years ago)
- Topics: ask, prompt, replace, replace-text, rollup, rollup-plugin
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rollup plugin prompt replace
Rollup plugin that ask for text to replace
----
This plugin use [`@rollup/plugin-replace`](https://github.com/rollup/plugins/tree/master/packages/replace) under the hood.
Any options of `@rollup/plugin-replace` can be used.
## Installation
```
npm install --save-dev @macfja/rollup-plugin-prompt-replace
```
## Usage
```javascript
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](CONTRIBUTING.md)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.