Skip to content

Commit 369bba7

Browse files
committed
feat(docs): drop docs support for IE11; extract algolia's js to separate chunk
1 parent fb7eb0f commit 369bba7

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"yarn": ">= 1.6.0"
4747
},
4848
"browserslist": [
49-
"last 1 version, not dead, ie >= 11"
49+
"last 3 version, not dead"
5050
],
5151
"resolutions": {
5252
"@babel/parser": "7.7.5"

docs/quasar.conf.js

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

44
module.exports = function (ctx) {
55
return {
6-
vendor: {
7-
remove: [
8-
'quasar/dist/api'
9-
]
10-
},
11-
126
// app boot file (/src/boot)
137
// --> boot files are part of "main.js"
148
boot: [
@@ -25,7 +19,7 @@ module.exports = function (ctx) {
2519
'material-icons'
2620
],
2721

28-
supportIE: true,
22+
// supportIE: true,
2923
preFetch: true,
3024

3125
build: {
@@ -187,6 +181,22 @@ module.exports = function (ctx) {
187181

188182
// appId: 'quasar-app'
189183
}
184+
},
185+
186+
vendor: {
187+
remove: [
188+
'quasar/dist/api',
189+
190+
// following are used by algolia
191+
'algoliasearch',
192+
'autocomplete.js',
193+
'hogan.js',
194+
'request',
195+
'stack-utils',
196+
'to-factory',
197+
'zepto',
198+
'es6-promise'
199+
]
190200
}
191201
}
192202
}

docs/src/layouts/Layout.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,15 @@ export default {
302302
// If we have a search string in the query (mostly from tab-to-search functionality),
303303
// we need to open the drawer to fill in the search string in the input later
304304
const searchQuery = this.$route.query.search
305+
305306
if (searchQuery) {
306307
this.leftDrawerState = true
307308
}
308309
309-
import('docsearch.js').then(docsearch => {
310+
import(
311+
/* webpackChunkName: "algolia" */
312+
'docsearch.js'
313+
).then(docsearch => {
310314
docsearch.default({
311315
apiKey: '5c15f3938ef24ae49e3a0e69dc4a140f',
312316
indexName: 'quasar-framework',

0 commit comments

Comments
 (0)