diff --git a/src/server/template-renderer/index.js b/src/server/template-renderer/index.js index 121c4c5debc..4d923b2755d 100644 --- a/src/server/template-renderer/index.js +++ b/src/server/template-renderer/index.js @@ -181,7 +181,7 @@ export default class TemplateRenderer { } return this.prefetchFiles.map(file => { if (!alreadyRendered(file)) { - return `` + return `` } else { return '' } diff --git a/test/ssr/ssr-template.spec.js b/test/ssr/ssr-template.spec.js index 2229c9fbcc6..199fa6c0558 100644 --- a/test/ssr/ssr-template.spec.js +++ b/test/ssr/ssr-template.spec.js @@ -230,7 +230,7 @@ describe('SSR: template option', () => { (options.preloadOtherAssets ? `` : ``) + (options.preloadOtherAssets ? `` : ``) + // unused chunks should have prefetch - `` + + `` + // css assets should be loaded `` + `` +