Skip to content

Commit

Permalink
Merge pull request #8435 from knownasilya/patch-23
Browse files Browse the repository at this point in the history
fix: don't add extra slash in dist paths
  • Loading branch information
Turbo87 committed Feb 16, 2019
2 parents 30314ab + 57d314b commit 88b31fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/asset-size-printer.js
Expand Up @@ -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}`);
Expand Down

0 comments on commit 88b31fc

Please sign in to comment.