nuxt.config.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. const env = require('./env')
  2. export default {
  3. // Global page headers: https://go.nuxtjs.dev/config-head
  4. head: {
  5. title: 'de-net-official1',
  6. htmlAttrs: {
  7. lang: 'en'
  8. },
  9. meta: [
  10. { charset: 'utf-8' },
  11. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  12. { hid: 'description', name: 'description', content: '' },
  13. { name: 'format-detection', content: 'telephone=no' }
  14. ],
  15. link: [
  16. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  17. ]
  18. },
  19. // Global CSS: https://go.nuxtjs.dev/config-css
  20. css: [
  21. ],
  22. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  23. plugins: [
  24. 'plugins/vant',
  25. 'plugins/antd-design-vue',
  26. ],
  27. // Auto import components: https://go.nuxtjs.dev/config-components
  28. components: true,
  29. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  30. buildModules: [
  31. ],
  32. // Modules: https://go.nuxtjs.dev/config-modules
  33. modules: [
  34. // https://go.nuxtjs.dev/bootstrap
  35. 'bootstrap-vue/nuxt',
  36. ],
  37. // Build Configuration: https://go.nuxtjs.dev/config-build
  38. build: {
  39. },
  40. router: {
  41. extendRoutes(routes, resolve) {
  42. routes.push({
  43. name: 'index',
  44. path: '/:id?',
  45. component: resolve(__dirname, 'pages/index.vue')
  46. },{
  47. name: 'install',
  48. path: '/install',
  49. component: resolve(__dirname, 'pages/install.vue')
  50. },
  51. {
  52. name: 'custom',
  53. path: '*',
  54. component: resolve(__dirname, 'pages/404.vue')
  55. })
  56. }
  57. },
  58. env: {
  59. NUXT_ENV: env[process.env.MODE]
  60. }
  61. }