| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- const webpack = require('webpack')
- export default {
- /*
- ** Nuxt rendering mode
- ** See https://nuxtjs.org/api/configuration-mode
- */
- mode: 'universal',
- /*
- ** Nuxt target
- ** See https://nuxtjs.org/api/configuration-target
- */
- target: 'server',
- /*
- ** Headers of the page
- ** See https://nuxtjs.org/api/configuration-head
- 逻辑狗官网 - 中德智慧教育
- 关键词:逻辑狗官网、逻辑狗教材、逻辑狗课程、逻辑狗思维训练课程、儿童思维教育、0-12岁儿童
- 描述:逻辑狗官方网站,专为0-12岁儿童设计的思维训练课程,中德智慧教育,全球优质教育内容输出平台
- */
- head: {
- title: '逻辑狗官网-中德智慧教育',
- meta: [
- { name: 'renderer', content: 'webkit'},
- { name: 'force-rendering', content: 'webkit'},
- { 'http-equiv': 'X-UA-Compatible', content: 'IE=Edge,chrome=1'},
- { name: 'baidu-site-verification', content: 'mREHhDF8nW'},
- /*以上是设置双核浏览器默认状态下使用极速模式打开*/
- { charset: 'utf-8' },
- { hid: 'description', name: 'description', content: '中德智慧教育'},
- { name: 'format-detection', content: 'telephone=no' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1.0, user-scalable=no' },
- /*新增搜狗、神马、360 */
- // { name: '360-site-verification', content: '850970beabd63bd397272b6dd73a1aba' },
- // { name: 'sogou_site_verification', content: 'y3fi8ttkxP' },
- // { name: 'shenma-site-verification', content: '15230d9dfb2e66bfecf2408862f2462c_1537497601' }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
- { rel: 'stylesheet', href: '/common/common.css' }
- ],
- script: [
- { src: 'https://hm.baidu.com/hm.js?2a45c0311559f89f2ee65d1ac438d204' }
- ]
- },
- /*
- ** Global CSS
- */
- css: [
- 'element-ui/lib/theme-chalk/index.css',
- '~assets/css/reset.css',
- '~assets/css/animate.css',
- 'swiper/css/swiper.css'
- ],
- /*
- ** Plugins to load before mounting the App
- ** https://nuxtjs.org/guide/plugins
- */
- plugins: [
- { src: '@/plugins/element-ui', ssr: false },
- { src: "@/plugins/vue-swiper", ssr: false },
- { src: "@/plugins/vue-scroll-reveal", ssr: false },
- {
- src: '@/plugins/filter.js'
- },
- { src: '~/plugins/baidu.js' }
- ],
- /*
- ** Auto import components
- ** See https://nuxtjs.org/api/configuration-components
- */
- components: true,
- /*
- ** Nuxt.js dev-modules
- */
- buildModules: [
- ],
- /*
- ** Nuxt.js modules
- */
- modules: [
- ],
- /*
- ** Build configuration
- ** See https://nuxtjs.org/api/configuration-build/
- */
- build: {
- transpile: [/^element-ui/],
- extractCSS: {
- allChunks: true
- },
- // extractCSS: true,
- // optimization: {
- // splitChunks: {
- // cacheGroups: {
- // commons: {
- // test: /[\\/]node_modules[\\/]/,
- // name: "vendor",
- // chunks: "all"
- // }
- // }
- // }
- // },
- vender: ['axios'],
- extend (config, { isDev, isClient }) {
- if (isDev && isClient) {
- config.module.rules.push({
- enforce: 'pre',
- test: /\.(js|vue)$/,
- loader: 'eslint-loader',
- exclude: /(node_modules)/
- })
- }
- },
- plugins: [
- new webpack.ProvidePlugin({
- '$' : 'jquery'
- })
- ]
- },
- cache: true,
- //禁止预加载效果
- performance: {
- prefetch: false
- },
- }
|