const config = require("./webpack.config");
const webpack = require("webpack");

const cdnUrl = process.env.CDN_URL || "/";

config.devtool = "source-map";

config.plugins = (config.plugins || []).concat([
  new webpack.DefinePlugin({
    "process.env": {
      NODE_ENV: JSON.stringify("production")
    },
    SENTRY_DSN: JSON.stringify(
      "https://12b6be8ef7c44f28ac37ab5ed98fd294@sentry.io/146021"
    )
  }),
  new webpack.optimize.UglifyJsPlugin({
    sourceMap: true
  })
]);

config.output.publicPath = `${cdnUrl}built/`;

config.entry.winamp.unshift("./js/googleAnalytics.min.js");

module.exports = config;

const config = require("./webpack.config");
const webpack = require("webpack");

const cdnUrl = process.env.CDN_URL || "/";

config.plugins = (config.plugins || []).concat([
  new webpack.DefinePlugin({
    "process.env": {
      NODE_ENV: JSON.stringify("production")
    },
    SENTRY_DSN: JSON.stringify(
      "https://12b6be8ef7c44f28ac37ab5ed98fd294@sentry.io/146021"
    )
  }),
  new webpack.optimize.UglifyJsPlugin({
    sourceMap: true
  })
]);

config.output.publicPath = `${cdnUrl}built/`;

config.entry.winamp.unshift("./js/googleAnalytics.min.js");

module.exports = config;

--- 
+++ 
@@ -2,6 +2,8 @@
 const webpack = require("webpack");
 
 const cdnUrl = process.env.CDN_URL || "/";
+
+config.devtool = "source-map";
 
 config.plugins = (config.plugins || []).concat([
   new webpack.DefinePlugin({
Enable source maps for prod
