var webpack = require("webpack");
var Config = require("webpack-config").Config;

module.exports = new Config().extend("conf/webpack.base.config.js").merge({
    devtool: "#source-map",
    plugins: [
        new webpack.optimize.DedupePlugin(),
        new webpack.optimize.OccurrenceOrderPlugin(),
        new webpack.optimize.UglifyJsPlugin({ // Seems to break worker source maps
            sourceMap: true,
            mangle: {
                except: ["global"] // do not mangle global paralleljs env
            }
        })
    ]
});

var webpack = require("webpack");
var Config = require("webpack-config").Config;

module.exports = new Config().extend("conf/webpack.base.config.js").merge({
    devtool: "#source-map",
    plugins: [
        new webpack.optimize.DedupePlugin(),
        new webpack.optimize.OccurrenceOrderPlugin(),
        new webpack.optimize.UglifyJsPlugin({ // Seems to break worker source maps
            sourceMap: true,
            debug: true,
            mangle:false // mangling does not behave nicely with parallel.js
        })
    ]
});

Disable Mangling as it does not play well with paralleljs
Disable Mangling as it does not play well with paralleljs
