fixed some issues

This commit is contained in:
Tobias Koppers 2014-06-02 21:26:57 +02:00
parent 3247725ba3
commit a8c7dc26d9
2 changed files with 5 additions and 3 deletions

View File

@ -302,7 +302,7 @@ Stats.jsonToString = function jsonToString(obj, useColors) {
var l = value.length;
if(align[col] == "l")
format(value);
for(; l < colSizes[col]; l++)
for(; l < colSizes[col] && col !== cols-1; l++)
normal(" ");
if(align[col] == "r")
format(value);

View File

@ -13,8 +13,10 @@ describe("Examples", function() {
examples.forEach(function(examplePath) {
it("should compile " + path.basename(examplePath), function(done) {
var options = {};
if(fs.existsSync(path.join(examplePath, "webpack.config.js")))
options = require(path.join(examplePath, "webpack.config.js"));
var webpackConfigPath = path.join(examplePath, "webpack.config.js");
webpackConfigPath = webpackConfigPath.substr(0, 1).toUpperCase() + webpackConfigPath.substr(1);
if(fs.existsSync(webpackConfigPath))
options = require(webpackConfigPath);
options.context = examplePath;
options.optimize = options.optimize || {};
options.output = options.output || {};