lg_frontend/nuxt.config.js

83 lines
1.9 KiB
JavaScript
Raw Permalink Normal View History

2024-02-18 03:20:00 +00:00
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
2024-06-06 14:09:47 +00:00
// title: '峰煤智慧监控应用系统',
title: '',
2024-02-18 03:20:00 +00:00
htmlAttrs: {
lang: 'zh-cn'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: '/libs/mars3d-cesium/Widgets/widgets.css' },
{ rel: 'stylesheet', href: '/libs/mars3d/mars3d.css' },
2024-02-18 11:15:17 +00:00
],
css: [
],
js: [],
script: [
'/libs/mars3d-cesium/Cesium.js',
// '/libs/turf.min.js',
'/libs/mars3d/mars3d.js',
// '/libs/mars3d/plugins/space/mars3d-space.js',
].map(src => ({ src }))
2024-02-18 03:20:00 +00:00
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'ant-design-vue/dist/antd.css',
2024-06-15 17:13:55 +00:00
'@/assets/styles/mixin.less'
2024-02-18 03:20:00 +00:00
],
2024-07-30 15:55:13 +00:00
router: {
middleware: 'auth' // 应用全局中间件
},
2024-02-18 03:20:00 +00:00
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'@/plugins/antd-ui',
'@/plugins/echarts',
'@/plugins/axios',
2024-02-23 16:03:18 +00:00
'@/plugins/setup',
2024-02-28 14:50:04 +00:00
'@/plugins/dialog/index',
2024-02-18 03:20:00 +00:00
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
2024-06-06 14:09:47 +00:00
"@gauseen/nuxt-proxy"
2024-02-18 03:20:00 +00:00
],
2024-06-06 14:09:47 +00:00
proxyTable: {
"/api": {
target: 'http://101.43.201.20:5000/',
changeOrigin: true,
ws: false,
pathRewrite: {}
}
},
2024-02-18 03:20:00 +00:00
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
},
env: {
scale: 0.5
2024-06-06 14:09:47 +00:00
},
2024-02-18 03:20:00 +00:00
}