Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolate client and server artifacts #3758

Merged
merged 6 commits into from
Aug 20, 2018
Merged

Conversation

ishitatsuyuki
Copy link

Preliminary work for #2517.

@codecov-io
Copy link

codecov-io commented Aug 18, 2018

Codecov Report

Merging #3758 into dev will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##              dev   #3758      +/-   ##
=========================================
- Coverage   97.92%   97.9%   -0.02%     
=========================================
  Files          18      18              
  Lines        1158    1147      -11     
  Branches      311     309       -2     
=========================================
- Hits         1134    1123      -11     
  Misses         23      23              
  Partials        1       1
Impacted Files Coverage Δ
lib/builder/webpack/client.js 96.15% <ø> (ø) ⬆️
lib/builder/webpack/base.js 98.21% <ø> (ø) ⬆️
lib/core/middleware/error.js 97.56% <ø> (ø) ⬆️
lib/builder/generator.js 93.93% <100%> (-0.3%) ⬇️
lib/builder/builder.js 96.87% <100%> (+0.01%) ⬆️
lib/core/renderer.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97910de...88b6a13. Read the comment docs.

Copy link
Member

@clarkdo clarkdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
How about to extract dist server and client into options.js?

@clarkdo clarkdo requested review from pi0 and Atinux August 18, 2018 08:10
@ishitatsuyuki
Copy link
Author

I have considered making these directories configurable, however it adds considerable complexity and I'm not sure it has an use case.

@clarkdo
Copy link
Member

clarkdo commented Aug 18, 2018

I don’t think it’s worth making them configurable for now either, what I mean is adding variables in option, so that we only need to resolve one time.

@ishitatsuyuki
Copy link
Author

Regarding putting it to options.js: I don't think that's necessary because it's resolved only a few times (across components), and putting it into another file may make the code harder to navigate.

@ishitatsuyuki
Copy link
Author

@pi0 @Atinux Review ping!

@Atinux Atinux merged commit 716c04f into nuxt:dev Aug 20, 2018
@pi0
Copy link
Member

pi0 commented Aug 20, 2018

That's a Breaking change for CDN deployments but great improvement @ishitatsuyuki 👍

@galvez
Copy link

galvez commented Aug 20, 2018

@pi0 can you elaborate on why it breaks CDN deployment? You mean when we set build.publicPath? BTW, nice to see you!

@clarkdo
Copy link
Member

clarkdo commented Aug 20, 2018

Correct, we need to update document, user should upload dist/client to cdn.

@galvez
Copy link

galvez commented Aug 20, 2018

@clarkdo like this? nuxt/docs#719

@clarkdo
Copy link
Member

clarkdo commented Aug 20, 2018

Yes and maybe also release notes @Atinux

@ishitatsuyuki ishitatsuyuki deleted the dist-isolation branch August 20, 2018 23:25
@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants