nuxt.config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import en from "./_locales/en";
  2. import es from "./_locales/es";
  3. import tr from "./_locales/tr";
  4. import ru from "./_locales/ru";
  5. import cs from "./_locales/cs";
  6. import ja from "./_locales/ja";
  7. import fr from "./_locales/fr";
  8. // import de from "./_locales/de";
  9. // ...
  10. export default {
  11. // Global page headers: https://go.nuxtjs.dev/config-head
  12. head: {
  13. titleTemplate: "Return YouTube Dislike",
  14. title: "Return YouTube Dislike",
  15. htmlAttrs: {
  16. lang: "en",
  17. },
  18. meta: [
  19. { charset: "utf-8" },
  20. { name: "viewport", content: "width=device-width, initial-scale=1" },
  21. {
  22. hid: "description",
  23. name: "description",
  24. content:
  25. "An extension that returns dislike statistics to YouTube using a combination of scraped dislike stats and estimates extrapolated from extension user data.",
  26. },
  27. { hid: "og:image", name: "og:image", content: "/logo.png" },
  28. { hid: "theme-color", name: "theme-color", content: "#ff0000" },
  29. ],
  30. link: [
  31. { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
  32. { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
  33. ],
  34. },
  35. env: {
  36. apiUrl: "https://returnyoutubedislikeapi.com",
  37. },
  38. server: { host: "0.0.0.0", port: 80 }, //LINE FOR DEBUGGING ONLY
  39. target: "static",
  40. css: [],
  41. plugins: [],
  42. components: true,
  43. buildModules: ["@nuxtjs/vuetify"],
  44. modules: ["@nuxtjs/axios", "nuxt-user-agent"],
  45. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  46. vuetify: {
  47. lang: {
  48. locales: { en, es, tr, ru, cs, ja, fr /* de, ...*/ },
  49. current: "en",
  50. },
  51. theme: {
  52. dark: true,
  53. themes: {
  54. dark: {
  55. primary: "#ff4444",
  56. },
  57. },
  58. },
  59. },
  60. /*
  61. build: {
  62. extend(config, ctx) {
  63. // Run ESLint on save (dev-only)
  64. if (ctx.isDev && ctx.isClient) {
  65. config.module.rules.push({
  66. enforce: "pre",
  67. test: /\.(js|vue)$/,
  68. loader: "eslint-loader",
  69. exclude: /(node_modules)/,
  70. });
  71. }
  72. },
  73. }
  74. */
  75. };