Skip to content

Commit fb7eb0f

Browse files
committed
feat(docs): further improvements
1 parent 0a5b72a commit fb7eb0f

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

docs/quasar.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ const path = require('path')
33

44
module.exports = function (ctx) {
55
return {
6+
vendor: {
7+
remove: [
8+
'quasar/dist/api'
9+
]
10+
},
11+
612
// app boot file (/src/boot)
713
// --> boot files are part of "main.js"
814
boot: [

docs/src/components/DocApi.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,11 @@ export default {
305305
},
306306
307307
mounted () {
308-
import('quasar/dist/api/' + this.file + '.json').then(json => {
308+
import(
309+
/* webpackChunkName: "quasar-api" */
310+
/* webpackMode: "lazy-once" */
311+
'quasar/dist/api/' + this.file + '.json'
312+
).then(json => {
309313
this.parseJson(this.file, json.default)
310314
this.loading = false
311315
})

docs/src/components/DocExample.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,19 @@ export default {
116116
117117
mounted () {
118118
Promise.all([
119-
import('examples/' + this.file + '.vue').then(comp => {
119+
import(
120+
/* webpackChunkName: "demo" */
121+
/* webpackMode: "lazy-once" */
122+
'examples/' + this.file + '.vue'
123+
).then(comp => {
120124
this.component = comp.default
121125
}),
122126
123-
import('!raw-loader!examples/' + this.file + '.vue').then(comp => {
127+
import(
128+
/* webpackChunkName: "demo-source" */
129+
/* webpackMode: "lazy-once" */
130+
'!raw-loader!examples/' + this.file + '.vue'
131+
).then(comp => {
124132
this.parseComponent(comp.default)
125133
})
126134
]).then(() => {

0 commit comments

Comments
 (0)