Add vuetify
This commit is contained in:
parent
93b1712fb5
commit
d59b9bdbec
@ -2,17 +2,29 @@
|
|||||||
"name": "web",
|
"name": "web",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"serve": "vite preview",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
"dev": "vite",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@mdi/font": "5.9.55",
|
||||||
|
"roboto-fontface": "*",
|
||||||
"vue": "^3.2.25",
|
"vue": "^3.2.25",
|
||||||
"vue-router": "^4.0.12",
|
"vue-router": "^4.0.12",
|
||||||
"vuex": "^4.0.2"
|
"vuetify": "^3.0.0-alpha.12",
|
||||||
|
"vuex": "^4.0.2",
|
||||||
|
"webfontloader": "^1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^2.0.0",
|
"@vitejs/plugin-vue": "^2.0.0",
|
||||||
"vite": "^2.7.2"
|
"@vue/cli-plugin-babel": "5.0.0-beta.7",
|
||||||
|
"@vue/cli-service": "5.0.0-beta.7",
|
||||||
|
"@vuetify/vite-plugin": "^1.0.0-alpha.3",
|
||||||
|
"sass": "^1.38.0",
|
||||||
|
"sass-loader": "^10.0.0",
|
||||||
|
"vite": "^2.7.2",
|
||||||
|
"vue-cli-plugin-vuetify": "~2.4.5",
|
||||||
|
"vuetify-loader": "^2.0.0-alpha.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,44 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
import vuetify from '@vuetify/vite-plugin'
|
||||||
|
|
||||||
|
import path from 'path'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [
|
||||||
server: {
|
vue(),
|
||||||
host: '0.0.0.0',
|
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
||||||
proxy: {
|
vuetify({
|
||||||
'/api': {
|
autoImport: true,
|
||||||
target: 'http://10.0.0.162:1323/',
|
}),
|
||||||
changeOrigin: true
|
],
|
||||||
}
|
define: { 'process.env': {} },
|
||||||
}
|
resolve: {
|
||||||
}
|
alias: {
|
||||||
|
'@': path.resolve(__dirname, 'src'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
proxy: {
|
||||||
|
'/api': {
|
||||||
|
target: 'http://10.0.0.162:1323/',
|
||||||
|
changeOrigin: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* remove the need to specify .vue files https://vitejs.dev/config/#resolve-extensions
|
||||||
|
resolve: {
|
||||||
|
extensions: [
|
||||||
|
'.js',
|
||||||
|
'.json',
|
||||||
|
'.jsx',
|
||||||
|
'.mjs',
|
||||||
|
'.ts',
|
||||||
|
'.tsx',
|
||||||
|
'.vue',
|
||||||
|
]
|
||||||
|
},
|
||||||
|
*/
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user