|
|
|
@ -231,8 +231,14 @@ module.exports = (config, app) => { |
|
|
|
await next() |
|
|
|
} else if (path.startsWith("/_shared/")) { |
|
|
|
await send(ctx, path.replace(`/_shared/`, ""), { root: ctx.sharedPath }) |
|
|
|
} else { |
|
|
|
} else if ( |
|
|
|
path.endsWith(".js") || |
|
|
|
path.endsWith(".map") || |
|
|
|
path.endsWith(".css") |
|
|
|
) { |
|
|
|
await send(ctx, path, { root: ctx.publicPath }) |
|
|
|
} else { |
|
|
|
await send(ctx, "/index.html", { root: ctx.publicPath }) |
|
|
|
} |
|
|
|
}) |
|
|
|
.use(async (ctx, next) => { |
|
|
|
|