File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ const path = require('path')
33
44module . 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 : [
Original file line number Diff line number Diff 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 })
Original file line number Diff line number Diff 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 (() => {
You can’t perform that action at this time.
0 commit comments