for projects made with ant design pro framework, the loading speed of each page is very slow after packaging. Whether ignoreMomentLocale: true, disableDynamicImport: false, is configured to load on demand or slow in .webpackrc
when the browser loads, a js loads for more than 1s, and the packaged js is also very large
ask everyone how to do packaging optimization, as well as page performance issues
roadhog2.3
.webpackrccommon
const path = require("path");
let webpack = require("webpack");
export default {
entry: {
},
// entry: "src/index.js",
publicPath: process.env.NODE_ENV === "production" ? "/assets/" : "/",
extraBabelPlugins: [
],
"env": {
},
alias: {
},
commons: [
],
ignoreMomentLocale: true,
disableDynamicImport: false,
theme: "./src/theme.js",
html: {
},
hash: true,
};
ask everyone for advice,