请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

开发环境中服务端渲染不能更新

开发环境中服务端渲染不能更新,用的都是生产环境打包的文件,找不到原因//img1.sycdn.imooc.com//szimg/5b5c3dd70001268009900200.jpg



[0] > vue-core@1.0.0 dev:client F:\QD\学习\vue\vue-ssr

[0] > cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js

[0]

[1]

[1] > vue-core@1.0.0 dev:server F:\QD\学习\vue\vue-ssr

[1] > nodemon server/server.js

[1]

[1] [nodemon] 1.17.5

[1] [nodemon] reading config .\nodemon.json

[1] [nodemon] to restart at any time, enter `rs`

[1] [nodemon] or send SIGHUP to 6712 to restart

[1] [nodemon] ignoring: .\.git/**/* node_modules/**/node_modules .eslintrc .\client/**/* build/webpack.config.client.js .\public/**/* .md

[1] [nodemon] watching: *.*

[1] [nodemon] watching extensions: js,json,ejs

[1] [nodemon] starting `node server/server.js`

[1] [nodemon] forking

[1] [nodemon] child pid: 4884

[1] [nodemon] watching 75 files

[1] server is listening on 0.0.0.0:3333

[0] Project is running at http://0.0.0.0:8000/

[0] webpack output is served from http://127.0.0.1:8000/public/

[0] 404s will fallback to /public/index.html

[0] Hash: 6c8629237a92ca56b837

[0] Version: webpack 3.11.0

[0] Time: 19167ms

[0]                                           Asset       Size  Chunks                    Chunk Names

[0] resources/client/assets/images/bg.55db3d93.jpeg    80.8 kB          [emitted]

[0]                            0.bundle.6c862923.js    87.6 kB       0  [emitted]

[0]                            1.bundle.6c862923.js      35 kB       1  [emitted]

[0]                              bundle.6c862923.js     2.2 MB       2  [emitted]  [big]  main

[0]                                      index.html  243 bytes          [emitted]

[0]                    vue-ssr-client-manifest.json       6 kB          [emitted]

[0]    [8] (webpack)/hot/log.js 1.04 kB {2} [built]

[0]   [23] (webpack)/hot/emitter.js 77 bytes {2} [built]

[0]   [36] ./client/util/bus.js 287 bytes {2} [built]

[0]   [41] multi (webpack)-dev-server/client?http://0.0.0.0:8000 webpack/hot/dev-server ./client/client-entry.js 52 bytes {2} [built]

[0]   [42] (webpack)-dev-server/client?http://0.0.0.0:8000 7.93 kB {2} [built]

[0]   [43] ./node_modules/url/url.js 23.3 kB {2} [built]

[0]   [50] ./node_modules/strip-ansi/index.js 161 bytes {2} [built]

[0]   [52] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {2} [built]

[0]   [53] (webpack)-dev-server/client/socket.js 1.08 kB {2} [built]

[0]   [55] (webpack)-dev-server/client/overlay.js 3.67 kB {2} [built]

[0]   [60] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {2} [built]

[0]   [62] (webpack)/hot/dev-server.js 1.61 kB {2} [built]

[0]   [63] (webpack)/hot/log-apply-result.js 1.31 kB {2} [built]

[0]   [64] ./client/client-entry.js 519 bytes {2} [built]

[0]   [65] ./client/create-app.js 1.53 kB {2} [built]

[0]     + 124 hidden modules

[0] Child html-webpack-plugin for "index.html":

[0]      1 asset

[0]        [0] ./node_modules/html-webpack-plugin/lib/loader.js!./build/template.html 353 bytes {0} [built]

[0]        [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]

[0]        [2] (webpack)/buildin/global.js 509 bytes {0} [built]

[0]        [3] (webpack)/buildin/module.js 517 bytes {0} [built]

[0] webpack: Compiled successfully.

好像只有客户端打包信息


正在回答 回答被采纳积分+3

2回答

Jokcy 2018-08-26 13:03:46

服务端渲染的打包信息有提示么?

0 回复 有任何疑惑可以回复我~
  • 提问者 div小丸子 #1
    就这些提示,好像服务端没有打包
    回复 有任何疑惑可以回复我~ 2018-09-03 22:31:56
  • Jokcy 回复 提问者 div小丸子 #2
    那就是你服务端打包有问题,检查配置看又没哪里不对
    回复 有任何疑惑可以回复我~ 2018-09-04 17:37:28
  • 提问者 div小丸子 回复 Jokcy #3
    process.env.NODE_DEV  server。js里面这个返回undefined,nodemon.json里面配置了但是没起作用
    回复 有任何疑惑可以回复我~ 2018-09-08 09:21:38
Jokcy 2018-08-01 23:25:23

什么叫渲染不能更新?

0 回复 有任何疑惑可以回复我~
  • 提问者 div小丸子 #1
    改了代码之后正常渲染可以更新,但服务端渲染没有变化,重启什么的都没有用
    回复 有任何疑惑可以回复我~ 2018-08-25 08:16:27
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信