Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit ee087af

Browse files
committed
Merge branch 'master' into dev
2 parents 60bc318 + cf8485a commit ee087af

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
const path = require('path')
2+
3+
function resolve (dir) {
4+
return path.join(__dirname, '..', dir)
5+
}
6+
17
module.exports = (api) => {
28
const hasVuetifyLoader = Boolean(
39
api.service.pkg.devDependencies['vuetify-loader'] ||
@@ -7,6 +13,19 @@ module.exports = (api) => {
713
if (hasVuetifyLoader) {
814
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
915

16+
// As the vuetify-loader automatically imports the necessary Vuetify components they are not found and
17+
// transpiled by Babel. Add Vuetify explicitly as a module to be transpiled.
18+
if (opts.transpileDependencies.indexOf('vuetify') === -1) {
19+
api.chainWebpack(config => {
20+
config.module
21+
.rule('js')
22+
.test(/\.m?jsx?$/)
23+
.include
24+
.add(resolve('vuetify'))
25+
.end()
26+
})
27+
}
28+
1029
api.chainWebpack(config => {
1130
config.plugin('VuetifyLoaderPlugin')
1231
.use(VuetifyLoaderPlugin)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"homepage": "https://github.com/vuetifyjs/vue-cli-plugin-vuetify#readme",
2929
"devDependencies": {
3030
"@vue/cli-service": "^3.8.0",
31-
"vuetify": "^2.0.0-beta.0",
31+
"vuetify": "^2.0.0",
3232
"vuetify-loader": "^1.2.2"
3333
},
3434
"dependencies": {}

ui/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = api => {
1818
message: 'Locale',
1919
description: 'Default application language',
2020
default: 'en',
21-
link: 'https://vuetifyjs.com/framework/internationalization#getting-started',
21+
link: 'https://vuetifyjs.com/customization/internationalization',
2222
type: 'list',
2323
choices: locales
2424
},
@@ -27,7 +27,7 @@ module.exports = api => {
2727
message: 'Custom Theme',
2828
description: 'Specify custom theme values',
2929
default: false,
30-
link: 'https://vuetifyjs.com/style/theme',
30+
link: 'https://vuetifyjs.com/customization/theme',
3131
type: 'confirm'
3232
},
3333
{
@@ -84,15 +84,15 @@ module.exports = api => {
8484
message: 'CSS Variables',
8585
description: 'Create css variables from defined theme',
8686
default: false,
87-
link: 'https://vuetifyjs.com/style/theme#options',
87+
link: 'https://vuetifyjs.com/customization/theme#options',
8888
type: 'confirm'
8989
},
9090
{
9191
name: 'icons',
9292
message: 'Icon font',
9393
description: 'Application icon defaults',
9494
default: 'mdi',
95-
link: 'https://vuetifyjs.com/framework/icons#using-custom-icons',
95+
link: 'https://vuetifyjs.com/customization/icons#using-custom-icons',
9696
type: 'list',
9797
choices: iconfonts
9898
},
@@ -101,7 +101,7 @@ module.exports = api => {
101101
message: 'RTL',
102102
description: 'Enable Right to Left support',
103103
default: false,
104-
link: 'https://vuetifyjs.com/framework/internationalization#rtl',
104+
link: 'https://vuetifyjs.com/customization/rtl',
105105
type: 'confirm'
106106
}
107107
]

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6875,7 +6875,7 @@ vuetify-loader@^1.2.2:
68756875
dependencies:
68766876
loader-utils "^1.1.0"
68776877

6878-
vuetify@^2.0.0-beta.0:
6878+
vuetify@^2.0.0:
68796879
version "2.0.0"
68806880
resolved "https://registry.yarnpkg.com/vuetify/-/vuetify-2.0.0.tgz#58c72247251412b5e804c8c38a0e12bcb736d949"
68816881
integrity sha512-AbtHkWdvxF3QrR/xCpu2XL+KJ59Z7/KQQmbV4gPn6Q3VlQ5tXaGR4AJO1uNrvGCTlLlQxWHGcwMGOiHU7aIlqg==

0 commit comments

Comments
 (0)