More flexible regexp: 4x3, material and such cases

This commit is contained in:
Vadim Makeev 2016-08-12 22:18:32 +03:00
parent 88dffef4b5
commit ed65022035
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ gulp.task('prepare', () => {
'!package.json'
])
.pipe(replace(
/(<link rel="stylesheet" href=")(node_modules\/shower-ribbon\/)(styles\/screen-16x10.css">)/g,
'$1shower/themes/ribbon/$3', { skipBinary: true }
/(<link rel="stylesheet" href=")(node_modules\/shower-)([^\/]*)\/(.*\.css">)/g,
'$1shower/themes/$3/$4', { skipBinary: true }
))
.pipe(replace(
/(<script src=")(node_modules\/shower-core\/)(shower.min.js"><\/script>)/g,