邃芒官网、邃芒慧影、口播(H5) https://m.metavatar.cc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

69 lines
1.8 KiB

  1. // const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
  2. const path = require('path');
  3. module.exports = {
  4. configureWebpack: {
  5. resolve: {
  6. alias: {
  7. '@': path.resolve(__dirname, 'src')
  8. }
  9. }
  10. },
  11. css: {
  12. loaderOptions: {
  13. css: {
  14. // options here will be passed to css-loader
  15. },
  16. // postcss: {
  17. // // options here will be passed to postcss-loader
  18. // plugins: [require('postcss-px2rem')({
  19. // remUnit: 75
  20. // })]
  21. // }
  22. }
  23. },
  24. pwa: {
  25. iconPaths: {
  26. favicon32: 'favicon.ico',
  27. favicon16: 'favicon.ico',
  28. appleTouchIcon: 'favicon.ico',
  29. maskIcon: 'favicon.ico',
  30. msTileImage: 'favicon.ico'
  31. }
  32. },
  33. //http://www.metavatar.cc/
  34. devServer: {
  35. overlay: {
  36. warnings: false,
  37. errors: false
  38. },
  39. proxy: {
  40. '/api': {
  41. target: 'https://smapitestmalls,iformall.com/C/api',
  42. changeOrigin: true,
  43. pathRewrite: {
  44. '^/api': ''
  45. },
  46. },
  47. }
  48. },
  49. lintOnSave: false,
  50. publicPath: './', // 打包后引用的资源路径
  51. // configureWebpack: {
  52. // plugins: [
  53. // //打包环境去掉console.log
  54. // new UglifyJsPlugin({
  55. // uglifyOptions: {
  56. // compress: {
  57. // drop_console: true, //注释console
  58. // drop_debugger: true, //注释debugger
  59. // pure_funcs: ['console.log'], //移除console.log
  60. // },
  61. // },
  62. // }),
  63. // ],
  64. // }
  65. }