Skip to content

Instantly share code, notes, and snippets.

markerikson /
Last active Jan 18, 2018
Webpack and confusion with process.env.NODE_ENV

2016-07-10 - #webpack - Initial discussion and confusion

[09:38 PM] Steven: No matter what I do, I cannot get the NODE_ENV to be production for the purposes of webpack compiling
I have tried every example on the web

    plugins: [  
        new webpack.DefinePlugin({  
                'NODE_ENV': JSON.stringify('production')  
hex13 / render-promise-in-react.js
Created Nov 3, 2016
how to render promises in React
View render-promise-in-react.js
//License CC0 1.0:
class Deferred extends React.Component {
constructor(props) {
this.state = {
value: ''
componentDidMount() {