Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't add extra slash in dist paths #8435

Merged
merged 2 commits into from Feb 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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