blakeembrey / free-style

Make CSS easier and more maintainable by using JavaScript
MIT License
707 stars 29 forks source link

Add production flag to create method #84

Closed RG100-EMUX closed 4 years ago

RG100-EMUX commented 4 years ago

Hello. I want see displayName in build app for development server. But create-react-app always set node_env=production in build command. Can you add options to create new instance method, default process.env.NODE_ENV === 'production' . Thank you

blakeembrey commented 4 years ago

Development server would use npm start, not build, which is not set to production. I don’t intend to expose this functionality as it increases the bundle size in production.