Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js Nuxt构建的结果被破坏_Vue.js_Nuxt.js - Fatal编程技术网

Vue.js Nuxt构建的结果被破坏

Vue.js Nuxt构建的结果被破坏,vue.js,nuxt.js,Vue.js,Nuxt.js,我尝试过使用Nuxt generate和Nuxt build构建Nuxt 那些不是正确建造的 好像要休息了 当我在dev中使用时,它是完美的工作 但在我构建并运行它之后,第三方组件和css根本不起作用, 这是因为我的numxt.conf.js错误吗?? 我以前问过这个问题,但还没有解决 这是我的numxt.config.js export default { mode: 'universal', head: { title: process.env.npm_package_nam

我尝试过使用Nuxt generate和Nuxt build构建Nuxt 那些不是正确建造的 好像要休息了 当我在dev中使用时,它是完美的工作 但在我构建并运行它之后,第三方组件和css根本不起作用, 这是因为我的
numxt.conf.js
错误吗?? 我以前问过这个问题,但还没有解决

这是我的
numxt.config.js

export default {
  mode: 'universal',
  head: {
    title: process.env.npm_package_name || '',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      {
        hid: 'description',
        name: 'description',
        content: process.env.npm_package_description || ''
      }
    ],
    script: [
      {
        src: 'https://kit.fontawesome.com/d0ddd22222fa871ae5.js',
        crossorigin: 'anonymous'
      }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      {
        rel: 'stylesheet',
        href:
          'https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700&display=swap'
      },
      {
        rel: 'stylesheet',
        href: 'https://fonts.googleapis.com/css?family=Quando&display=swap'
      },
      {
        rel: 'stylesheet',
        href: 'https://fonts.googleapis.com/css?family=Palanquin&display=swap'
      }
    ]
  },
  /*
   ** Customize the progress-bar color
   */
  loading: { color: '#fff' },

  /*
   ** Global CSS
   */
  css: [
    '@/assets/css/main.css',
    '@/assets/css/input.css',
    '@/assets/css/animate.css'
  ],
  plugins: [
    { src: '@/plugins/agile.js', mode: 'client' },
    { src: '@/plugins/model-gltf.js', mode: 'client'},
  ],

  router: {
    middleware: ['router'],
  },
  buildModules: [
  ],

  modules: [
    'bootstrap-vue/nuxt',
    '@nuxtjs/axios'
  ],
  axios: {
    baseURL: "http://myapi"
  },

  build: {
    vendor: ['vue-agile', 'vue-3d-model'],
    extend(config, ctx) {
    }
  }
}


这里有人能帮我节省时间吗?

如果没有完整的最小复制,就不可能判断出哪里出了问题。这意味着什么?这意味着在需要复制问题的地方进行最小回购