Skip to content

Instantly share code, notes, and snippets.

@nchase
Created January 23, 2017 15:44

Revisions

  1. Noah Chase created this gist Jan 23, 2017.
    13 changes: 13 additions & 0 deletions webpack.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    // Webpack's poorly-documented EnvironmentPlugin
    //
    // Read more here: https://github.com/webpack/webpack/blob/master/lib/EnvironmentPlugin.js

    var webpack = require('webpack');

    module.exports = {
    plugins: [
    new webpack.EnvironmentPlugin([
    'NODE_ENV'
    ])
    ]
    }