• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in React JS by
Q:

How do you tell React to build in Production mode and what will that do?

1 Answer

0 votes
by

Ordinarily, you'd utilize Webpack's DefinePlugin strategy to set NODE_ENV to production. This will strip out things like prototype approval and additional notices. Over that, it's likewise a smart thought to minify your code in light of the fact that React utilizes Uglify's dead-code end to strip out advancement just code and remarks, which will radically diminish the measure of your package. 

Related questions

0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
  • #reactjs
  • #redux
  • #redux#state
0 votes
asked Feb 24, 2021 in React JS by SakshiSharma
+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance
...