kana-bbs/nuxt.config.js

36 lines
793 B
JavaScript
Raw Normal View History

2022-01-30 13:34:10 +08:00
export default {
components: true,
2022-02-07 23:56:33 +08:00
buildModules: ['nuxt-animejs'],
2022-01-30 13:34:10 +08:00
modules: ['@nuxtjs/axios', '@nuxtjs/proxy'],
axios: { proxy: true, proxyHeaders: true },
2024-04-29 20:41:01 +08:00
proxy: { '/api': 'http://localhost:2333' },
2022-02-07 23:56:33 +08:00
css: ['@fortawesome/fontawesome-free/css/all.css'],
pageTransition: {
name: 'page',
mode: 'out-in',
css: false,
beforeEnter(el) {
this.$anime.set(el, {
opacity: 0
})
},
enter(el, done) {
this.$anime({
targets: el,
opacity: [0, 1],
duration: 500,
easing: 'easeInOutSine',
complete: done
})
},
leave(el, done) {
this.$anime({
targets: el,
opacity: [1, 0],
duration: 500,
easing: 'easeInOutSine',
complete: done
})
}
}
2022-01-30 13:34:10 +08:00
}