1.0.2 • Published 5 years ago

rollup-plugin-string-replacer v1.0.2

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

rollup-plugin-string-replacer

A rollup plugin wrapper for the "replace-in-file" node package. Will run after the bundle is generated to honor any async file operations.

Usage

import stringReplacer from 'rollup-plugin-string-replacer'

explort default {
	'input': 'src/app.js',
	'output': 
	{
		...
	},
	'plugins': 
	[
		stringReplacer({
			'files': 'path', 	// (string|array|glob)
			'from': 'text', 	// (string|array|regex|function)
			'to': 'text', 		// (string|array|function)
			'options': {} 		// passthru options for replace-in-file
		})
	]
}

More Info

See replace-in-file documentation for more usage details, https://github.com/adamreisnz/replace-in-file

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago