mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Fix gulp build on Windows (#3894)
* Fix gulp build compressed on Windows Need to escape the separate for the regex. * nit: formatt
This commit is contained in:
@@ -191,7 +191,8 @@ function buildCompressed() {
|
||||
// Flatten all files so they're in the same directory, but ensure that
|
||||
// files with the same name don't conflict.
|
||||
.pipe(gulp.rename(function (p) {
|
||||
var dirname = p.dirname.replace(new RegExp(path.sep, "g"), "-");
|
||||
var dirname = p.dirname.replace(
|
||||
new RegExp(path.sep.replace(/\\/, '\\\\'), "g"), "-");
|
||||
p.dirname = "";
|
||||
p.basename = dirname + "-" + p.basename;
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user