Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. // import path from 'path';
  2. // import PurgecssPlugin from 'purgecss-webpack-plugin';
  3. // import glob from 'glob-all';
  4.  
  5. export default {
  6. mode: 'universal',
  7. /*
  8. ** Headers of the page
  9. */
  10. head: {
  11. titleTemplate: '%sAiDEAL Technology',
  12. htmlAttrs: {
  13. lang: 'en'
  14. },
  15. meta: [
  16. { charset: 'utf-8' },
  17. {
  18. name: 'viewport',
  19. content: 'width=device-width, initial-scale=1 viewport-fit-cover'
  20. },
  21. {
  22. hid: 'description',
  23. name: 'description',
  24. content: 'Blockchain Company'
  25. },
  26. {
  27. hid: 'keyword',
  28. name: 'keyword',
  29. content:
  30. 'AiDEAL Technology, aideal, Blockchain, Malaysia, finance, transaction'
  31. },
  32. { property: 'og:type', content: 'website' },
  33. {
  34. property: 'og:url',
  35. content: 'https:/aideallab.io'
  36. },
  37. { property: 'og:title', content: 'AiDEAL Technology' },
  38. {
  39. property: 'og:image',
  40. content: 'https://aideallab.io/_nuxt/img/5129181.png'
  41. },
  42. { property: 'og:description', content: 'Blockchain Company' },
  43. { property: 'og:site_name', content: 'AiDEAL Technology' },
  44. { property: 'og:locale', content: 'en_US' }
  45. ],
  46. link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }]
  47. },
  48. /*
  49. ** Customize the progress-bar color
  50. */
  51. loading: { color: '#fff' },
  52. /*
  53. ** Global CSS
  54. */
  55. css: ['@/assets/css/main.scss'],
  56. /*
  57. ** Plugins to load before mounting the App
  58. */
  59. plugins: [],
  60. /*
  61. ** Nuxt.js dev-modules
  62. */
  63. buildModules: [
  64. // Doc: https://github.com/nuxt-community/eslint-module
  65. '@nuxtjs/eslint-module',
  66. '@nuxtjs/tailwindcss'
  67. ],
  68. /*
  69. ** Nuxt.js modules
  70. */
  71. modules: [
  72. // Doc: https://axios.nuxtjs.org/usage
  73. '@nuxtjs/axios',
  74. '@nuxtjs/pwa',
  75. ['@nuxtjs/google-analytics', { id: 'UA-150266076-1' }]
  76. ],
  77. /*
  78. ** Axios module configuration
  79. ** See https://axios.nuxtjs.org/options
  80. */
  81. axios: {},
  82. /*
  83. ** Build configuration
  84. */
  85. build: {
  86. /*
  87. ** You can extend webpack config here
  88. */
  89. // extractCSS: true,
  90. extend: (config) => {
  91. const svgRule = config.module.rules.find((rule) =>
  92. rule.test.test('.svg')
  93. );
  94. svgRule.test = /\.(png|jpe?g|gif|webp)$/;
  95. config.module.rules.push({
  96. test: /\.svg$/,
  97. loader: 'vue-svg-loader'
  98. });
  99. }
  100. }
  101. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement