Skip to content

Commit

Permalink
feat: ✨ 增加构建分析页面示例
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Jun 9, 2020
1 parent 13eabf9 commit 099fde5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"serve": "vue-cli-service serve --open",
"start": "npm run serve",
"dev": "npm run serve",
"build": "vue-cli-service build",
"build": "vue-cli-service build --report",
"build:preview": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode preview",
"lint": "vue-cli-service lint --fix",
"test:unit": "vue-cli-service test:unit"
Expand Down
3 changes: 2 additions & 1 deletion src/menu/modules/demo-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
children: (pre => [
{ path: `${pre}index`, title: 'Frame ', icon: 'home' },
{ path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' },
{ path: `${pre}html`, title: '静态 HTML', icon: 'code' }
{ path: `${pre}html`, title: '静态 HTML', icon: 'code' },
{ path: `${pre}report`, title: '构建分析', icon: 'pie-chart' }
])('/demo/frame/')
}
1 change: 1 addition & 0 deletions src/router/modules/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
children: (pre => [
{ path: 'index', name: `${pre}index`, component: _import('demo/frame/index'), meta: { ...meta, title: 'Frame 首页' } },
{ path: 'html', name: `${pre}html`, component: _import('demo/frame/html'), meta: { ...meta, title: '静态 HTML' } },
{ path: 'report', name: `${pre}report`, component: _import('demo/frame/report'), meta: { ...meta, title: 'Size report' } },
{ path: 'd2-doc', name: `${pre}d2-doc`, component: _import('demo/frame/d2-doc'), meta: { ...meta, title: 'D2Admin 中文文档' } }
])('demo-frame-')
}
3 changes: 3 additions & 0 deletions src/views/demo/frame/report/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<d2-container-frame :src="`${$baseUrl}report.html`"/>
</template>

0 comments on commit 099fde5

Please sign in to comment.