diff --git a/lib/models/asset-size-printer.js b/lib/models/asset-size-printer.js index 1e85a366d2..c1b854cd05 100644 --- a/lib/models/asset-size-printer.js +++ b/lib/models/asset-size-printer.js @@ -84,7 +84,7 @@ module.exports = class AssetPrinterSize { return walkSync(outputPath, { directories: false, }).filter(x => x.endsWith('.css') || x.endsWith('.js')) - .map(x => `${outputPath}/${x}`); + .map(x => path.join(outputPath, x)); } catch (e) { if (e !== null && typeof e === 'object' && e.code === 'ENOENT') { throw new Error(`No asset files found in the path provided: ${outputPath}`);