Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ce1734d

Browse files
committed
fix(fusuma): use publicPath instrad of /
1 parent 3731696 commit ce1734d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/fusuma/src/tasks/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function build(config, isConsoleOutput = true) {
5353
if (isConsoleOutput) {
5454
const chunks = outputBuildInfo(stats);
5555

56-
buildLogs({ ...logs, ...chunks });
56+
buildLogs({ ...logs, ...chunks }, config.build.publicPath);
5757
}
5858
}
5959

packages/fusuma/src/utils/buildLogs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const tableConfig = {
1919
drawHorizontalLine: () => false,
2020
};
2121

22-
function buildLogs(logs) {
22+
function buildLogs(logs, publicPath) {
2323
const outputStack = [];
2424
const syncChunk = chalk.yellow('○');
2525
const asyncChunk = chalk.cyan('○');
@@ -39,7 +39,7 @@ function buildLogs(logs) {
3939
outputStack.push(['', '', 'size', 'gzip']);
4040
outputStack.push([
4141
` ┌─`,
42-
`${syncChunk} /`,
42+
`${syncChunk} ${publicPath}`,
4343
chalk.green(prettyBytes(logs.assets['index.html'].size)),
4444
'',
4545
]);

0 commit comments

Comments
 (0)