I'm having one heck of a time figuring out regular expression in the context of the grunt-string-replace plugin.
I'm basically trying to take something like this:
!random-cssmixin{}
And turn it into this:
.random-cssmixin;
Is it possible to do this or does regular expression simply allow to you manipulate the text between?
My Gruntfile.js:
'string-replace': {
dist: {
expand: true,
flatten: true,
src: devRoot + ['/css/*.less'],
dest: sqsRootCss,
options: {
replacements: [{
pattern: /\$/g,
replacement: "@"
}, {
pattern: "No clue",
replacement: "No idea"
}]
}
},
},