mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
44 lines
847 B
TypeScript
44 lines
847 B
TypeScript
import VueMacros from 'unplugin-vue-macros/vite'
|
|
|
|
export default defineNuxtConfig({
|
|
ssr: false,
|
|
modules: [
|
|
'@vueuse/nuxt',
|
|
'@unocss/nuxt',
|
|
'@pinia/nuxt',
|
|
],
|
|
experimental: {
|
|
reactivityTransform: true,
|
|
inlineSSRStyles: false,
|
|
},
|
|
css: [
|
|
'@unocss/reset/tailwind.css',
|
|
'~/styles/vars.css',
|
|
'~/styles/global.css',
|
|
],
|
|
alias: {
|
|
querystring: 'rollup-plugin-node-polyfills/polyfills/qs',
|
|
},
|
|
vite: {
|
|
define: {
|
|
__BUILD_TIME__: JSON.stringify(new Date().toISOString()),
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
plugins: [
|
|
VueMacros({
|
|
defineModel: true,
|
|
}),
|
|
],
|
|
},
|
|
postcss: {
|
|
plugins: {
|
|
'postcss-nested': {},
|
|
},
|
|
},
|
|
runtimeConfig: {
|
|
registedAppsUrl: process.env.APPS_JSON_URL || 'http://localhost:3000/registered-apps.json',
|
|
},
|
|
})
|