nuxt.config.js
unknown
javascript
3 years ago
2.4 kB
36
No Index
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'maimbau',
htmlAttrs: {
lang: 'en'
},
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' }
]
},
// Server Configuration
server: {
port: 8000, // default: 3000
host: 'localhost', // default: localhost
}, // other configs
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '@/plugins/vue-awesome-swiper', mode: 'client' },
{ src: "@/plugins/aos", ssr: false }
],
// 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/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/stylelint
'@nuxtjs/stylelint-module',
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
],
tailwindcss: {
configPath: 'tailwind.config.js',
exposeConfig: false,
config: {},
injectPosition: 0,
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
"postcss-custom-properties": false
},
},
},
buildDir: 'dist',
router: {
extendRoutes(routes, resolve) {
routes.push({
name: 'demo_recipient',
path: '/demo/undangan/:theme/:greeting/:recipient',
component: resolve(__dirname, 'pages/demo/undangan/_theme.vue')
}),
routes.push({
name: 'webview_recipient',
path: '/:catin/:greeting/:recipient',
component: resolve(__dirname, 'pages/_catin/index.vue')
})
}
}
}
Editor is loading...