90 lines
2.0 KiB
JavaScript
90 lines
2.0 KiB
JavaScript
export default {
|
|
config: {
|
|
nuxt: {
|
|
host: '0.0.0.0',
|
|
port: 3100,
|
|
}
|
|
},
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
head: {
|
|
title: 'Law Practice Management System',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
|
|
{ name: 'description', content: '', hid: 'description' },
|
|
{ name: 'format-detection', content: 'telephone=no' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }
|
|
],
|
|
script: [
|
|
{ src: 'https://unpkg.com/scrollreveal' },
|
|
{ src: 'https://www.googletagmanager.com/gtag/js?id=AW-10780603837', body: true },
|
|
],
|
|
},
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
css: [
|
|
'@/assets/css/main.css',
|
|
'@/assets/ant/main.less',
|
|
],
|
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
plugins: [
|
|
'@/plugins/ant'
|
|
],
|
|
|
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
|
components: true,
|
|
|
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
|
buildModules: [
|
|
// https://go.nuxtjs.dev/typescript
|
|
'@nuxt/typescript-build',
|
|
],
|
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
modules: [
|
|
// https://go.nuxtjs.dev/axios
|
|
'@nuxtjs/axios',
|
|
// https://go.nuxtjs.dev/pwa
|
|
'@nuxtjs/pwa',
|
|
],
|
|
|
|
// Axios module configuration: https://go.nuxtjs.dev/config-axios
|
|
axios: {},
|
|
|
|
// PWA module configuration: https://go.nuxtjs.dev/pwa
|
|
pwa: {
|
|
manifest: {
|
|
lang: 'en'
|
|
},
|
|
icon:{
|
|
source: '/static/icon.png',
|
|
fileName: 'icon.png'
|
|
},
|
|
},
|
|
|
|
// less:{
|
|
// javascriptEnabled: true,
|
|
// modifyVars: {
|
|
// 'primary-color': '#3a3dbe',
|
|
// 'link-color': '#3a3dbe'
|
|
// },
|
|
// math:'always',
|
|
// },
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
build: {
|
|
loaders: {
|
|
less: {
|
|
lessOptions: {
|
|
javascriptEnabled: true,
|
|
math:'always',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|