You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Browserify.opts.basedir is set, all content is written to the common file, and the outputs specified by { outputs: [...] } are blank. Before I realized that it was the Browserify.opts.basedir setting, I found that printing out the row and groups from the threashold function showed some differences (which thus led me to the basedir setting). Below are the outputs from the threashold function using the homepage sample.
basedir not set
var browserify = require("browserify");
var fs = require("fs");
var files = ["./Scripts/test/x.js", "./Scripts/test/y.js"];
var b = browserify(files);
b
.plugin(factor, {
outputs: ["wwwroot/test/x.js", "wwwroot/test/y.js"], threshold: function (row, groups) {
console.log(row);
console.log(groups);
return this._defaultThreshold(row, groups);
}
});
b
.bundle()
.pipe(fs.createWriteStream("wwwroot/common.js"));
*Note the groups array is non-empty and there are 3 files emitted
When
Browserify.opts.basedir
is set, all content is written to the common file, and the outputs specified by{ outputs: [...] }
are blank. Before I realized that it was theBrowserify.opts.basedir
setting, I found that printing out therow
andgroups
from thethreashold
function showed some differences (which thus led me to thebasedir
setting). Below are the outputs from thethreashold
function using the homepage sample.basedir
not set*Note the
groups
array is non-empty and there are 3 files emittedbasedir
setNote the
groups
array is always empty, and only 2 files are emittedEnvironment:
Windows 8.1 x64
Node.js v0.10.33
Browserify 8.0.2
factor-bundle 2.3.3
The text was updated successfully, but these errors were encountered: