Tools: Fix running build scripts on Windows does not generate CSS files for blocks

Starting with WordPress 6.0, when running `npm run build` or `npm run build:dev`, no CSS files were generated for the blocks within `wp-includes/blocks/**`.

Props wildworks, clorith, sergeybiryukov.
Fixes #56616.



git-svn-id: https://develop.svn.wordpress.org/trunk@54307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski
2022-09-26 11:20:43 +00:00
parent decd9468e5
commit 00d2562fe2
3 changed files with 24 additions and 22 deletions

View File

@ -69,8 +69,12 @@ const stylesTransform = ( mode ) => ( content ) => {
return content;
};
const normalizeJoin = ( ...paths ) => join( ...paths ).replace( /\\/g, '/' );
module.exports = {
baseDir,
baseConfig,
normalizeJoin,
stylesTransform,
};