eddyson-de / tapestry-react

Integration of Apache Tapestry and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In production, the debug/development code should be disabled

jochenberger opened this issue · comments

As we always add the unminified assets as modules, the debug code stays in the files in production mode. Unfortunately, there is no unminified production distribution (facebook/react#5242), so if we want to be able to use unminified resources in production, we need to strip the debugging code from the react.js file ourselves. Maybe a global replace of "development" !== 'production' by "production" !== 'production' will do the trick.