mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-78400 JavaScript: Building JS puts build files in src dir on Win.
This commit is contained in:
parent
84bb5725f8
commit
5eed922987
@ -31,8 +31,7 @@
|
||||
* @return {String} The rewritten destination path.
|
||||
*/
|
||||
const babelRename = function(destPath, srcPath) {
|
||||
const path = require('path');
|
||||
destPath = srcPath.replace(`amd${path.sep}src`, `amd${path.sep}build`);
|
||||
destPath = srcPath.replace(`amd/src`, `amd/build`);
|
||||
destPath = destPath.replace(/\.js$/, '.min.js');
|
||||
return destPath;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user