Creating a reaction assembly in a meteorite application

I developed a React / Redux application with the Meteor JS framework.

Installing React in meteor is a class (npm command):

meteor npm install --save to respond

But when I check with the extension response-devtools, I see that the React Version is a development assembly instead of building the assembly.

(The message "This page uses the React development construct. 🚧")

What should I do to use reactive assembly instead in my meteor app? I have already tried setting environment variables:

export NODE_ENV = 'production'

but the result is the same.

+5
source share
2 answers

Launching a meteor with a flag of production, for example. meteor --production should imitate how meteorite applications are created for production. To learn more about deploying meteor applications, read the meteor deployment and monitoring guide.

+1
source

this problem is solved using Meteor version 1.5.1 (using the --production flag)

now I get this message: this page uses the production React assembly. ✅

+1
source

All Articles