邃芒官网(PC) https://www.metavatar.cc
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

59 Zeilen
1.3 KiB

  1. const path = require('path')
  2. function resolve(dir) {
  3. return path.join(__dirname, dir)
  4. }
  5. module.exports = {
  6. css: {
  7. loaderOptions: {
  8. css: {
  9. // options here will be passed to css-loader
  10. },
  11. // postcss: {
  12. // // options here will be passed to postcss-loader
  13. // plugins: [require('postcss-px2rem')({
  14. // remUnit: 75
  15. // })]
  16. // }
  17. }
  18. },
  19. // pwa: {
  20. // iconPaths: {
  21. // favicon32: 'favicon.ico',
  22. // favicon16: 'favicon.ico',
  23. // appleTouchIcon: 'favicon.ico',
  24. // maskIcon: 'favicon.ico',
  25. // msTileImage: 'favicon.ico'
  26. // }
  27. // },
  28. //http://www.metavatar.cc/
  29. devServer: {
  30. overlay: {
  31. warnings: false,
  32. errors: false
  33. },
  34. proxy: {
  35. '/api': {
  36. target: 'http://www.metavatar.cc/api',
  37. changeOrigin: true,
  38. pathRewrite: {
  39. '^/api': ''
  40. },
  41. },
  42. }
  43. },
  44. lintOnSave: false,
  45. publicPath: '/', // 打包后引用的资源路径
  46. configureWebpack: {
  47. resolve: {
  48. alias: {
  49. '@': resolve('src')
  50. }
  51. }
  52. }
  53. }