Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
fix: update packages and default iconfont
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 26, 2019
1 parent b283c44 commit 6711cad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = api => {

api.extendPackage({
devDependencies: {
'@mdi/svg': '*',
'@mdi/js': '*',
'axios': '*',
'webfontloader': '*',
'vue-analytics': '*',
Expand All @@ -32,7 +32,7 @@ module.exports = api => {
let index = fs.readFileSync(indexPath, 'utf8')

index = index.replace('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">', '')
index = index.replace('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons">', '')
index = index.replace('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">', '')
index = index.replace(/^\s*\n/gm, '')

fs.writeFileSync(indexPath, index)
Expand Down
3 changes: 3 additions & 0 deletions generator/template/src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ WebFontLoader.load({
})

export default new Vuetify({
icons: {
iconfont: 'mdiSvg'
},
lang: {
t: (key, ...params) => i18n.t(key, params)
},
Expand Down

0 comments on commit 6711cad

Please sign in to comment.