vue.config.js 552 B

123456789101112131415161718192021222324252627282930
  1. const path = require("path");
  2. function resolve(dir) {
  3. return path.join(__dirname, dir);
  4. }
  5. module.exports = {
  6. publicPath: "./",
  7. outputDir: "cattletrading",
  8. lintOnSave: false,
  9. productionSourceMap: false,
  10. devServer: {
  11. inline: true,
  12. port: 8999,
  13. open: true,
  14. },
  15. configureWebpack: {
  16. resolve: {
  17. alias: {
  18. "@": resolve("src"),
  19. },
  20. },
  21. performance:{
  22. // 入口起点的最大体积
  23. maxEntrypointSize: 50000000,
  24. // 生成文件的最大体积
  25. maxAssetSize: 30000000,
  26. }
  27. },
  28. };