I did check these multiple questions on SO, but so far none has the answer. Very simple regex that giving error "Unterminated regular expression literal" near the escaped dot. Regex should match ./images/.
const regex = new RegExp(/\.\/images\/);
const options = {
files: [
'./style/_styles.scss'
],
from: [regex],
to: ['./../dist/primeng-lib/images/']
};
In your first line, you forgot the closing regex delimiter.
Change this:
const regex = new RegExp(/\.\/images\/);
To this
const regex = new RegExp(/\.\/images\//);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With