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
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.
Source: stackoverflow.com
Related Query
- Webpack frozen during '91% additional asset processing'
- 92% chunk asset optimization - webpack
- What is the pros and cons of using Rails asset pipeline vs. webpack to hold assets?
- How to move css-in-js (Styled Components) to an external css files during build using webpack - ReactJS
- Making webpack 5 asset loader work with webpack-dev-server
- Webpack 'html-webpack-plugin' adding additional script after each build
- Next.js: pass additional props to the page during static export?
- Serving static assets during development with WebPack
- Webpack 5 Asset Modules not bundling images in
- Issues adding additional entry point to webpack config (create react app)
- react-leaflet and leaflet-editable: create additional marker during event?
- Add path when webpack creates static asset files react, create react app
- how do I make webpack not convert process.env variables to their values during build?
- Processing an Object During Fetch Returns 'undefined'
- How copy down mockServiceWorker.js file in React application during Webpack build proces to my build folder
- Using image files with webpack 5 and react, webpack is processing the image but it won't load in the browser
- Webpack 5 - Asset Modules - png|jpg - Webpack Error
- Heroku recently started giving deploy error "npm ERR! code ELIFECYCLE" during Webpack build
- where is create-react-app webpack config and files?
- ReactJS: Warning: setState(...): Cannot update during an existing state transition
- How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?
- How to tell webpack dev server to serve index.html for any route
- How to load image files with webpack file-loader
- Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema
- Dynamically import images from a directory using webpack
- Webpack loaders vs plugins; what's the difference?
- How do you Hover in ReactJS? - onMouseLeave not registered during fast hover over
- webpack can't find module if file named jsx
- Add Favicon with React and Webpack
- Webpack how to build production code and how to use it
More Query from same tag
- React: Firebase auth function calls by itself when the component renders
- Can't get userId on frontend
- Connecting to MySQL Database from React?
- How to prevent memory leak in React when using Firebase authentication
- Logic for multiple phone number edit
- divide/split a column into two parts and style each part in material table?
- How to make a dynamic modal in React?
- template getter must return HTMLTemplateElement in polmer <google-map> component
- Trigger click event for react element
- React JS: How to add classname for react component based on the position in an array?
- How do I insert a Django template variable into a React script?
- Why does the callback on addEvenetListener print out old state?
- React/MobX component not re-rendering after state change (found a weird solution, would like to know why)
- Remove ObjectId from mongodb document serialized to JSON in C#
- How to call custom proptype function with ES6 React class
- Limit the number of clicks on map using React
- Without clicking the button the function method is calling in react
- How to set a value to a variable inside ternary
- Remove object by the key-index in redux state
- Space between divs in a column without affecting height
- Error in withRouter params parsing Invariant Violation: You should not use <Route> or withRouter() outside a <Router>
- React siblings components communication
- Correct way to type nullable state when using React's useState hook
- How separate between days on the week view with fullcalendar react?
- React error - expected semicolon after render method?
- How to show modal popup after submitting form using reactjs?
- React Hook "useState" is called in function "AAA" which is neither a React function component or a custom React Hook function
- React + SocketIO
- Multi select with controlShouldRenderValue set to true not working in Table
- How to display long string data from JSON as a list wise using react typescript