vue.config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const ThreadsPlugin = require('threads-plugin');
  2. module.exports = {
  3. publicPath: '',
  4. productionSourceMap: false,
  5. pwa: {
  6. manifestPath: "web-manifest.json",
  7. name: "音乐解锁",
  8. themeColor: "#4DBA87",
  9. msTileColor: "#000000",
  10. manifestOptions: {
  11. start_url: "./index.html",
  12. description: "在任何设备上解锁已购的加密音乐!",
  13. icons: [
  14. {
  15. 'src': './img/icons/android-chrome-192x192.png',
  16. 'sizes': '192x192',
  17. 'type': 'image/png'
  18. },
  19. {
  20. 'src': './img/icons/android-chrome-512x512.png',
  21. 'sizes': '512x512',
  22. 'type': 'image/png'
  23. }
  24. ]
  25. },
  26. appleMobileWebAppCapable: 'yes',
  27. iconPaths: {
  28. faviconSVG: './img/icons/safari-pinned-tab.svg',
  29. favicon32: './img/icons/favicon-32x32.png',
  30. favicon16: './img/icons/favicon-16x16.png',
  31. appleTouchIcon: './img/icons/apple-touch-icon-152x152.png',
  32. maskIcon: './img/icons/safari-pinned-tab.svg',
  33. msTileImage: './img/icons/msapplication-icon-144x144.png'
  34. },
  35. workboxPluginMode: "GenerateSW",
  36. workboxOptions: {
  37. skipWaiting: true
  38. }
  39. },
  40. configureWebpack: {
  41. plugins: [new ThreadsPlugin()]
  42. }
  43. };