This repository was archived by the owner on May 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,15 @@ module.exports = {
118118 }
119119 ],
120120 template: resolvePath (' web/index.html' ), // 使用的模版文件路径
121- head: [
122- ' <meta description=xxx />' ,
123- ' <title>title</title>'
124- ], // 自定义头部内容,通常在动态设置meta信息的时候用到
125- injectCss : (chunkName ) => ([
126- ` <link rel='stylesheet' href='/static/css/${ chunkName} .chunk.css' />`
127- ]), // 客户端需要加载的静态css文件资源
128- injectScript : (chunkName ) => ([
129- ` <script src='/static/js/runtime~${ chunkName} .js'></script>` ,
130- ` <script src='/static/js/vendor.chunk.js'></script>` ,
131- ` <script src='/static/js/${ chunkName} .chunk.js'></script>`
132- ]), // 客户端需要加载的静态js文件资源
133- serverJs : (chunkName ) => resolvePath (` dist/${ chunkName} .server.js` ) // 服务端需要使用的打包后的serverRender方法js文件的路径
121+ injectCss: [
122+ ` /static/css/Page.chunk.css`
123+ ], // 客户端需要加载的静态样式表
124+ injectScript: [
125+ ` <script src='/static/js/runtime~Page.js'></script>` ,
126+ ` <script src='/static/js/vendor.chunk.js'></script>` ,
127+ ` <script src='/static/js/Page.chunk.js'></script>`
128+ ], // 客户端需要加载的静态资源文件表
129+ serverJs: resolvePath (` dist/Page.server.js` )
134130}
135131```
136132
You can’t perform that action at this time.
0 commit comments