Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
if (devMode) {
options.devtool = "inline-source-map";
options.debug = "true";
// These lines break the build into two chunks, one for our code, and one for all our dependencies
// This allows for a faster rebuild time
options.plugins.push(new webpack.optimize.CommonsChunkPlugin("vendor", "externalDeps.js"));
options.entry.vendor = ["react", "lodash", "bluebird", "mathjs", "immutable", "fluxxor", "d3"];
}
return options;
});
// Hack: add Timestamp to the WebPack build message.
WebpackNotifierPlugin.prototype._compileMessage = WebpackNotifierPlugin.prototype.compileMessage;
WebpackNotifierPlugin.prototype.compileMessage = function (stats) {
var msg = this._compileMessage(stats);
if (msg === "Build successful") {
msg += " @ " + (new Date()).toLocaleTimeString();
}
return msg;
};
module.exports = buildConfigs;
if (devMode) {
options.devtool = "inline-source-map";
options.debug = "true";
// These lines break the build into two chunks, one for our code, and one for all our dependencies
// This allows for a faster rebuild time
options.plugins.push(new webpack.optimize.CommonsChunkPlugin("vendor", "externalDeps.js"));
options.entry.vendor = ["react", "lodash", "bluebird", "mathjs", "immutable", "fluxxor", "d3"];
}
return options;
});
// Hack: add Timestamp to the WebPack build message.
WebpackNotifierPlugin.prototype._compileMessage = WebpackNotifierPlugin.prototype.compileMessage;
WebpackNotifierPlugin.prototype.compileMessage = function (stats) {
var msg = this._compileMessage(stats);
if (msg === "Build successful") {
msg += " @ " + (new Date()).toLocaleTimeString();
}
return msg;
};
module.exports = buildConfigs;