nuxt.config.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import colors from "vuetify/es5/util/colors";
  2. export default {
  3. // Global page headers: https://go.nuxtjs.dev/config-head
  4. head: {
  5. titleTemplate: "Return YouTube Dislike",
  6. title: "Return YouTube Dislike",
  7. htmlAttrs: {
  8. lang: "en",
  9. },
  10. meta: [
  11. { charset: "utf-8" },
  12. { name: "viewport", content: "width=device-width, initial-scale=1" },
  13. {
  14. hid: "description",
  15. name: "description",
  16. content:
  17. "An extension that returns dislike statistics to YouTube. For now, it only works if a video had public display of dislikes enabled before YouTube removed dislike stats. ",
  18. },
  19. { hid: "og:image", name: "og:image", content: "/logo.png" },
  20. { hid: "theme-color", name: "theme-color", content: "#ff0000" },
  21. ],
  22. link: [
  23. { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
  24. { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
  25. ],
  26. },
  27. env: {
  28. apiUrl: "https://returnyoutubedislikeapi.com",
  29. },
  30. server: { host: '0.0.0.0', port: 80 }, //LINE FOR DEBUGGING ONLY
  31. target: "static",
  32. css: [],
  33. plugins: [],
  34. components: true,
  35. buildModules: ["@nuxtjs/vuetify"],
  36. modules: ['@nuxtjs/axios','nuxt-user-agent'],
  37. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  38. vuetify: {
  39. customVariables: ["~/assets/variables.scss"],
  40. theme: {
  41. dark: true,
  42. themes: {
  43. dark: {
  44. primary: "#ff4444",
  45. accent: colors.grey.darken3,
  46. secondary: colors.amber.darken3,
  47. info: colors.teal.lighten1,
  48. warning: colors.amber.base,
  49. error: colors.deepOrange.accent4,
  50. success: colors.green.accent3,
  51. },
  52. },
  53. },
  54. },
  55. /*
  56. build: {
  57. extend(config, ctx) {
  58. // Run ESLint on save (dev-only)
  59. if (ctx.isDev && ctx.isClient) {
  60. config.module.rules.push({
  61. enforce: "pre",
  62. test: /\.(js|vue)$/,
  63. loader: "eslint-loader",
  64. exclude: /(node_modules)/,
  65. });
  66. }
  67. },
  68. }
  69. */
  70. };