nuxt.config.js 2.1 KB

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