fix: Client development build performance (#31390)
## Description Dev mode performance: - Disabled background tape checks for dev builds briefly. - Configured caching for dev mode - Added TS exclude paths Timings: before: build ~ 120 sec, recompile ~ 115 sec after: build ~ 16 sec, recompile ~ 8 sec
This commit is contained in:
parent
8db4cd3872
commit
a33362bd9d
|
|
@ -17,6 +17,9 @@ module.exports = {
|
||||||
babel: {
|
babel: {
|
||||||
plugins: ["babel-plugin-lodash"],
|
plugins: ["babel-plugin-lodash"],
|
||||||
},
|
},
|
||||||
|
eslint: {
|
||||||
|
enable: false,
|
||||||
|
},
|
||||||
webpack: {
|
webpack: {
|
||||||
configure: {
|
configure: {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,18 @@ module.exports = merge(common, {
|
||||||
client: {
|
client: {
|
||||||
overlay: {
|
overlay: {
|
||||||
warnings: false,
|
warnings: false,
|
||||||
errors: false
|
errors: false,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: false,
|
minimize: false,
|
||||||
},
|
},
|
||||||
|
cache: {
|
||||||
|
type: "filesystem",
|
||||||
|
memoryCacheUnaffected: true,
|
||||||
|
},
|
||||||
|
experiments: {
|
||||||
|
cacheUnaffected: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"analyze": "yarn cra-bundle-analyzer",
|
"analyze": "yarn cra-bundle-analyzer",
|
||||||
"start": "BROWSER=none EXTEND_ESLINT=true REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=7168 start",
|
"start": "BROWSER=none REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=4096 start",
|
||||||
"build": "./build.sh",
|
"build": "./build.sh",
|
||||||
"build-airgap": "node download-assets.js && ./build.sh",
|
"build-airgap": "node download-assets.js && ./build.sh",
|
||||||
"build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js",
|
"build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js",
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,5 @@
|
||||||
"importsNotUsedAsValues": "error"
|
"importsNotUsedAsValues": "error"
|
||||||
},
|
},
|
||||||
"include": ["./src/**/*", "./packages"],
|
"include": ["./src/**/*", "./packages"],
|
||||||
"exclude": ["./packages/rts"]
|
"exclude": ["./packages/rts", "**/node_modules", "**/.*/"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user