henzagold_shop_site/nuxt.config.js

116 lines
4.1 KiB
JavaScript

export default {
mode: 'universal',
loading: '~/components/Loading.vue',
rootDir: __dirname,
server: {
port: 4200,
},
head: {
htmlAttrs: {
lang: 'fa',
dir: 'rtl',
},
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{'http-equiv': 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{
hid: 'description',
name: 'description',
content: 'فروشگاه آنلاین طلا ارمغان گلد با پخش ، فروش و خرید انواع زیروآلات طلا شامل خرید سرویس طلا، خرید دستبند طلا، خرید انگشتر طلا، گردنبند رولباسی طلا، سرویس طلا نگین دار و فروش انواع سرویسی طلا کم اجرت در خدمت همه خریداران محترم می باشد'
},
{
name:'enamad',
content: '636776'
}
],
link: [
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/bootstrap.min.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/animate.min.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/magnific-popup.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/slick.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/slick-theme.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/plugins/select2.min.css', as: "style"},
{rel: 'stylesheet', type: "text/css", href: '/css/nouislider.min.css', as: "style"},
], script: [
{src: '/js/plugins/jquery-3.4.1.min.js', body: true, as: "script"},
{src: '/js/plugins/popper.min.js', body: true, as: "script"},
{src: '/js/plugins/bootstrap.min.js', body: true, as: "script"},
{src: '/js/plugins/isotope.pkgd.min.js', body: true, as: "script"},
{src: '/js/plugins/slick.min.js', body: true, as: "script"},
{src: '/js/plugins/select2.min.js', body: true, as: "script"},
{src: '/js/nouislider.min.js', body: true, as: "script"},
{src: '/js/plugins/jquery.zoom.min.js', body: true, as: "script"},
{src: '/js/jquery.elevatezoom.js', body: true, as: "script"},
{src: '/js/main.js', body: true, as: "script"},
// {src:'https://www.googletagmanager.com/gtag/js?id=G-ZDSES9FFZS', body: true, as:"script"},
//analiticts
{src: 'https://www.googletagmanager.com/gtag/js?id=G-CFHMS1PQGT', body: true, as: "script", defer: true},
{src: '/js/googleAnalitics.js', body: true, as: "script",defer: true},
/*{src: '/js/yektaNet.js', body: true, as: "script",defer: true},*/
/*{src: '/js/raychat.js', body: true, as: "script", defer: true},*/
// {src:'/js/yektaNet.js', body: true, as:"script"},
// {src:'/js/hantana.js', body: true, as:"script"},
/*{src:'/js/google_tag_manager.js', body: true},*/
]
},
css: [],
plugins: [
'~plugins/lodash.js',
'~plugins/currency.js',
'~plugins/vuesax.js',
'~plugins/global.js',
{ssr: false, src: '~plugins/getLogin'}
],
buildModules: [
'@nuxtjs/tailwindcss',
],
modules: [
'@nuxtjs/pwa',
['nuxt-lazy-load', {
images: true,
videos: true,
audios: true,
iframes: false,
native: false,
directiveOnly: false,
loadingClass: 'isLoading',
loadedClass: 'isLoaded',
appendClass: 'lazyLoad',
observerConfig: {}
}]
],
build: {
extend(config, ctx) {
}
},
router: {},
env: {
baseUrl: (process.env.NODE_ENV !== 'production') ?
'http://armaghangold.shop/' :
'http://armaghangold.shop/',
apiUrl: (process.env.NODE_ENV !== 'production') ?
'https://henzagold.shop/oapi/site' :
'https://henzagold.shop/oapi/site'
},
pwa: {
meta: {
title: 'Armaghan Gold',
author: 'Armaghan Gallery',
},
manifest: {
name: 'ArmaghanGold',
short_name: 'ArmaghanGold',
display: "standalone",
lang: 'fa',
background_color: '#000',
theme_color: "#000",
},
icon: {}
}
}