const trackingScript = 'var dataLayer = window.dataLayer = window.dataLayer || [];dataLayer.push({"user":{"sitecoreId":"00000000-0000-0000-0000-000000000000","locale":"zh-HK"},"session":{"id":"vvfwez43vfoomct4y3yqneqy"},"site":{"country":"HK","id":"RCGlobalMC1","environment":"prd"},"page":{"type":"Start of Life Page","hitTimestamp":"2020-10-16T16:26:21.7350880+00:00","topic":"Collecting your kitten and their first week with you","theme":"Cat"},"pet":{"specieId":"2"}});'; const assetsUrl = 'var assetsUrl="/royalcanin-cdn-assets-new/css_js/";'; export default { // Global page headers: https://go.nuxtjs.dev/config-head head: { title: 'rc-busness', htmlAttrs: { lang: 'en', }, script: [ //{ src: '/js/rem.js' }, // { src: '/js/flexible.js', type: 'text/javascript', charset: 'utf-8'}, { src: 'https://ocstest.royalcanin.com.cn:8081/livechat/chatapp/customer/branch/RoyalCanin/14053/index.js' }, //{ src: 'https://ocstest.royalcanin.com.cn:8081/livechat/chatapp/customer/branch/RoyalCanin/14054/index.js' }, { innerHTML: trackingScript, type: 'text/javascript', charset: 'utf-8'}, { innerHTML: assetsUrl, type: 'text/javascript', charset: 'utf-8'}, { src: '/royalcanin-cdn-assets-new/css_js/royal-canin.min.bundle.js' }, ], __dangerouslyDisableSanitizers: ['script', 'innerHTML'], meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1,target-densitydpi =1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' } ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, { rel: 'stylesheet', id:'royal-canin' ,href: '/royalcanin-cdn-assets-new/css_js/royal-canin.styles.prefix.min.critical.css?v=8-10-0'}, //{ rel: 'stylesheet', id:'royal-canin' ,href: '/royalcanin-cdn-assets-new/css_js/royal-canin.styles.prefix.min.css?v=8-10-0'}, ] }, // Global CSS: https://go.nuxtjs.dev/config-css css: [ 'vant/lib/index.css', 'element-ui/lib/theme-chalk/index.css', {src:'@/assets/css/royalcanin-custom.css'}, { src: "swiper/css/swiper.css" } ], router: { middleware: ['metaTitle'] }, // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins plugins: [ '@/plugins/vant', '@/plugins/ElementUI', { src: "~/plugins/swiper.js", ssr: false }, { src: '@/plugins/localStorage', 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: [ ], // Modules: https://go.nuxtjs.dev/config-modules modules: [ '@nuxtjs/axios', ['nuxt-tailvue', {toast: true}], ], styleResources: { less: '@/assets/style/less/default.less' // less文件路径 }, // Build Configuration: https://go.nuxtjs.dev/config-build build: { analyze: true, assetFilter: function(assetFilename) { return assetFilename.endsWith('.js'); } }, // axios: { // proxy: true, // // prefix: '/api/', // credentials: true // // See https://github.com/nuxt-community/axios-module#options // }, // proxy: { // '/api/': { // target: 'http://47.96.75.242:10086/smart-admin-api',//这个网站是开源的可以请求到数据的 // pathRewrite: { // '^/api/': '/', // changeOrigin: true // }, // } // }, }