You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.2 KiB
69 lines
2.2 KiB
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
css: ['element-plus/dist/index.css'],
|
|
imports: {
|
|
dirs: ['@/stores', '@/composables'],
|
|
},
|
|
// @ts-ignore
|
|
modules: [
|
|
'@pinia/nuxt',
|
|
'@nuxtjs/tailwindcss',
|
|
'@element-plus/nuxt',
|
|
],
|
|
plugins:[
|
|
{src: '~~/plugins/persits', mode: 'client'},
|
|
{src: '~~/plugins/element-plus.client', mode: 'client'},
|
|
// {src: '~~/plugins/router.js', mode: 'client'},
|
|
],
|
|
// script: [
|
|
// {
|
|
// type: 'text/javascript',
|
|
// src:'https://cdn.bootcss.com/socket.io/1.3.7/socket.io.js',
|
|
// }
|
|
// ],
|
|
// routeRules: {
|
|
// "/": { static: true }, // ssr
|
|
// "/about": { static: false }, // spa 应用
|
|
// // 3.0.0-12rc -> NetLify
|
|
// "/case": { static: true }, // 只会在构建时生成一次静态页面
|
|
// "/dynamicInfo": { static: true }, // 只会生成多次静态页面( 会自动重新验证页面时候需要重新生成 )
|
|
// "/earlyWarningInfo": { static: true }, // 只会生成多次静态页面( 会自动重新验证页面时候需要重新生成 )
|
|
// "/inform": { static: true }, // 只会生成多次静态页面( 会自动重新验证页面时候需要重新生成 )
|
|
// "/informTalk": { static: true }, // 只会生成多次静态页面( 会自动重新验证页面时候需要重新生成 )
|
|
// "/regulatoryStandards.vue": { static: true }, // 只会生成多次静态页面( 会自动重新验证页面时候需要重新生成 )
|
|
// },
|
|
|
|
elementPlus: {
|
|
icon: 'ElIcon',
|
|
importStyle: 'scss'
|
|
},
|
|
vite: {
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: '@use "@/assets/style/config.scss" as *;'
|
|
}
|
|
},
|
|
},
|
|
},
|
|
nitro: {
|
|
devProxy: {
|
|
"/api": {
|
|
target: 'http://research.mcnetmart.com/api',
|
|
prependPath: true,
|
|
changeOrigin: true,
|
|
},
|
|
"/uploads": {
|
|
target: 'http://research.mcnetmart.com/uploads',
|
|
prependPath: true,
|
|
changeOrigin: true,
|
|
},
|
|
"/index.php": {
|
|
target: 'http://research.mcnetmart.com/index.php?s=/captcha',
|
|
prependPath: true,
|
|
changeOrigin: true,
|
|
},
|
|
}
|
|
}
|
|
})
|