Skip to content

Commit

Permalink
fix: multiple ./
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 17, 2018
1 parent 157cb3f commit 9799a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/umi-build-dev/src/generateHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function getHTMLContent(opts = {}) {
});

function getAssetsPath(file) {
return `${pathToScript}${stripFirstSlash(file)}`;
return `${pathToScript}${stripFirstSlash(file)}`.replace(/^\.\/\.\//, './');
}

const getFilesOpts = {
Expand Down

0 comments on commit 9799a86

Please sign in to comment.