score:0

below settings helped me to reduce the heap memory since it will not include the sourcemap file.

devtool: false, // webpack.

new webpack.optimize.uglifyjsplugin({
   sourcemap: shouldusesourcemap
}),

or below code will help for latest webpack uglify plugin.

> npm install uglifyjs-webpack-plugin --save-dev

// conf.js
const uglifyjsplugin = require('uglifyjs-webpack-plugin');
module.exports = {
  optimization: {
    minimizer: [
      new uglifyjsplugin({
        sourcemap: true,
      }),
    ],
  },
};

if this still not help to fix the problem. below command helps to increase heap memory and answer link to know more about heap memory is below as well.

node --max-old-space-size=16000 scripts/build.js

https://stackoverflow.com/a/57480923/1533666

score:0

bellow's worked for me..... i removed bootstrap (styles and script) links from angular.json and also removed this lines.

 "cli": {
"analytics": "0261d1e0-3775-4486-8b80-807954bcb6c2"

}

score:3

try setting devtool: 'cheap'. if you have a large app, generating sourcemaps can be expensive. its a temporary solution until this issue fully gets gets

also it seems like this project is based off of electron-react-boilerplate, which i am a core maintainer of. you should open bug reports/issues there.


Related Query

More Query from same tag