Skip to content

Conversation

@phil294
Copy link

@phil294 phil294 commented May 30, 2020

Fixes #28

912dcb7dd52746d4
Outputs for example

/dist/js/app.27e17d15.js
/dist/js/app.27e17d15.js.map
/dist/js/app-legacy.00aa67e8.js
/dist/js/app-legacy.00aa67e8.js.map
etc.

and

<html>
[...]
<!--vue-ssr-outlet-->
{{{ renderState() }}}
{{{ renderScripts() }}}
<script type=module src=/js/chunk-vendors.a9109a24.js></script>
<script type=module src=/js/app.27e17d15.js></script>
<script src=/js/safari-nomodule-fix.js></script>
<script src=/js/chunk-vendors-legacy.3b5a3d7d.js nomodule></script>
<script src=/js/app-legacy.00aa67e8.js nomodule></script>
</body></html>

Just like a normal non-ssr --modern build.
Couple problems persist, I'll just review my own pull request below for code comments

phil294 and others added 5 commits March 23, 2020 13:25
... even when `cricitcalCSS` is disabled. This fixes the `document is not defined` bug in production mode
Fixes Akryum#186
So it can be called multiple times, even asynchronously
Always build in modern mode (even in dev mode), config option for this is still missing.
There are now three webpack configs, two client (modern/legacy) ones and one for the server.
From a seperate branch / pull request, not related to this one
@phil294 phil294 mentioned this pull request May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build in modern mode

1 participant