@mpxjs/vue-cli-plugin-mpx-ssr 2.1.27 → 2.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,14 +12,14 @@ const favicon = require('serve-favicon')
|
|
|
12
12
|
|
|
13
13
|
const template = fs.readFileSync(path.resolve('public/index.ssr.html'), 'utf-8')
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const mpxConfig = require('../mpx.config.js')
|
|
16
16
|
|
|
17
17
|
const app = express()
|
|
18
18
|
|
|
19
19
|
app.use(favicon(path.resolve('public/favicon.ico')))
|
|
20
20
|
|
|
21
21
|
const getRenderer = async () => {
|
|
22
|
-
const clientPort =
|
|
22
|
+
const clientPort = mpxConfig.pluginOptions?.SSR?.devClientPort || 3000
|
|
23
23
|
const clientManifest = await axios.get(
|
|
24
24
|
`http://localhost:${clientPort}/vue-ssr-client-manifest.json`
|
|
25
25
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/vue-cli-plugin-mpx-ssr",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.29",
|
|
4
4
|
"description": " web ssr plugin for mpx-cli",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"memory-fs": "^0.5.0",
|
|
11
11
|
"fs-extra": "^9.1.0",
|
|
12
|
-
"@mpxjs/vue-cli-plugin-mpx": "^2.1.
|
|
13
|
-
"@mpxjs/cli-shared-utils": "^2.1.
|
|
12
|
+
"@mpxjs/vue-cli-plugin-mpx": "^2.1.29",
|
|
13
|
+
"@mpxjs/cli-shared-utils": "^2.1.29"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"axios": "^1.6.0",
|