mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-26 23:24:38 +02:00
🔀 Merge pull request #1836 from webysther/master
Memory usage improvements
This commit is contained in:
commit
3dffc3339c
@ -5,7 +5,7 @@
|
|||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
|
|
||||||
module.exports = () => new Promise((resolve, reject) => {
|
module.exports = () => new Promise((resolve, reject) => {
|
||||||
const buildProcess = exec('npm run build'); // Trigger the build command
|
const buildProcess = exec('NODE_OPTIONS="--max-old-space-size=512" npm run build'); // Trigger the build command
|
||||||
|
|
||||||
let output = ''; // Will store console output
|
let output = ''; // Will store console output
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"incremental": true,
|
||||||
|
"tsBuildInfoFile": "/app/.tsbuildinfo",
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"strict": false,
|
"strict": false,
|
||||||
|
@ -96,5 +96,8 @@ module.exports = {
|
|||||||
devServer,
|
devServer,
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
config.module.rules.delete('svg');
|
config.module.rules.delete('svg');
|
||||||
|
config.cache({
|
||||||
|
type: 'filesystem',
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user