nuxt.config.js 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. /*
  3. ** Headers of the page
  4. */
  5. head: {
  6. title: 'nuxtgety-2',
  7. meta: [
  8. { charset: 'utf-8' },
  9. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  10. { hid: 'description', name: 'description', content: 'Second attempt at building a web interface for ESP8266' }
  11. ],
  12. link: [
  13. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  14. ]
  15. },
  16. /*
  17. ** Customize the progress bar color
  18. */
  19. loading: { color: '#3B8070' },
  20. /*
  21. ** Build configuration
  22. */
  23. build: {
  24. filenames: {
  25. css: 'common.css',
  26. manifest: 'manifest.js',
  27. vendor: 'common.js',
  28. app: 'app.js',
  29. chunk: '[name].js'
  30. },
  31. /*
  32. ** Run ESLint on save
  33. */
  34. extend (config, { isDev, isClient }) {
  35. if (isDev && isClient) {
  36. config.module.rules.push({
  37. enforce: 'pre',
  38. test: /\.(js|vue)$/,
  39. loader: 'eslint-loader',
  40. exclude: /(node_modules)/
  41. })
  42. }
  43. }
  44. }
  45. }