vue-cli-ssr-example
vue-cli-ssr-example copied to clipboard
基于 vue-cli3构建的一个SSR应用程序
Bumps [css-what](https://github.com/fb55/css-what) from 2.1.0 to 6.1.0. Release notes Sourced from css-what's releases. v6.1.0 feat: Support pseudo elements with data (#762) 3be227a https://github.com/fb55/css-what/compare/v6.0.1...v6.1.0 v6.0.1 Fix parsing column combinators after tag names...
Bumps [node-sass](https://github.com/sass/node-sass) from 4.9.3 to 7.0.0. Release notes Sourced from node-sass's releases. v7.0.0 Breaking changes Drop support for Node 15 (@nschonni) Set rejectUnauthorized to true by default (@scott-ut, #3149) Features...
Bumps [axios](https://github.com/axios/axios) from 0.18.0 to 0.21.1. Release notes Sourced from axios's releases. v0.21.1 0.21.1 (December 21, 2020) Fixes and Functionality: Hotfix: Prevent SSRF (#3410) Protocol not parsed when setting proxy...
我注意到你的package.json中,为了处理win和mac在移动文件的命令的不同而写了两条命令 ``` "build:win": "npm run build:server && move dist\\vue-ssr-server-bundle.json bundle && npm run build:client && move bundle dist\\vue-ssr-server-bundle.json && cross-env WEBPACK_TARGET=node NODE_ENV=production node ./server/ssr.js", "build:mac": "npm run build:server && mv...
Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates) Dependabot will resolve any conflicts with this PR as long as you don't alter...
我将项目yarn build之后,生产的dist文件,用Nginx指向里面的index.html会使得ssr失效,在本地可以使用。 或者说只能使用node环境起服务么,那部署在生产环境后,我的服务对么暴露的域名和端口要怎么配置。。。
集成vuex时,store.js里用axios异步取到的数据,数据会显示出来,查看源码看不到这些数据内容【不是F12查看】
请教一下~ 热更新报了如下错误: bootstrap:1007 Uncaught RangeError: Maximum call stack size exceeded at hotAddUpdateChunk (bootstrap:1007) at webpackHotUpdateCallback (bootstrap:36) at webpackHotUpdateCallback (bootstrap:37) at webpackHotUpdateCallback (bootstrap:37) at webpackHotUpdateCallback (bootstrap:37) at webpackHotUpdateCallback (bootstrap:37) at webpackHotUpdateCallback...
现在进行到的步骤,生成build.json,通过createBundleRenderer方法打包到index.html,这里都是没有问题的,但是当我使用koa-static进行暴露dist目录的时候报错 `Uncaught ReferenceError: require is not defined at Object.2c92 (es6.array.iterator":1) at a (bootstrap:63) at Module.a949 (external "vue":1) at a (bootstrap:63) at bootstrap:195 at bootstrap:195` 当不使用koa-static的时候却没有问题,只是理想的dist中的资源不能访问