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

add some features, fix a problem, improve the file name #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhangzhuang15
Copy link

fix #7, which contains 2 div element with same id;
make the name of file more impressive;
add activation of client side in ssr;
add compiler config of client side in ssr;

Change

see above

Does this PR introduce a breaking change?

no

What needs to be documented once your changes are merged?

npm run pressr-client will compiled ssr-client.js, and the compiled file is used to finish the activation of ssr rendering according to vue official intro. Then, you can use vue-router or vuex in ssr.
npm run pressr-server will compiled App.js, and the compiled file will be required in server.js, rendered to string by createSSRApp, then response this string to browser.
If your want to see the effect quickly, run npm run pressr, then run npm run ssr

Additional Comments

make the name of file more impressive;
add activation of client side in ssr;
add compiler config of client side in ssr;
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.

Why are there two divs with the same id of app?
1 participant