1.0.3 • Published 6 years ago
rollup-plugin-regex v1.0.3
rollup-plugin-regex
Replaces all occurrences of X regex with X value.
Example
In your rollup.config.js
:
import regex from 'rollup-plugin-regex';
export default {
// ...
plugins: [
regex([
{
test: /hello/g,
value: 'oof'
},
// ...
])
]
}