Questions tagged [factor-bundle]
9 questions
28
votes
2 answers
How to minify and factor-bundle files in the same browserify command?
I currently have this factor-bundle command which I use to bundle my files, and pull everything common into a common file:
browserify index.js bar-charts.js list-filter.js dashboard.js
-p [ factor-bundle -o ../../static/js/index.js -o…

Richard
- 62,943
- 126
- 334
- 542
10
votes
1 answer
Bootstrap doesn't work when wrapped by factor-bundle?
I've been using factor-bundle to wrap my common JS files:
browserify index.js bar-charts.js list-filter.js dashboard.js
-p [ factor-bundle -o ../../static/js/index.js -o ../../static/js/bar-chart.js -o ../../static/js/list-filter.js -o…

Richard
- 62,943
- 126
- 334
- 542
9
votes
2 answers
make some operations on factor-bundle's partial bundles
I am using gulp with browserify and factor-bundle.
I have the following code:
b = browserify({
entries: [ 'a.js', 'b.js'],
plugin: [ [ 'factor-bundle', { outputs: [ 'build/a.js', 'build/b.js' ] } ] ]
})
.bundle()
…

Naor
- 23,465
- 48
- 152
- 268
4
votes
0 answers
Configuring Browserify with factor-bundle and watchify
I am trying to configure my application to use browserify with watchify and factor-bundle. However, I seem to either end up with a memory leak or break watchify triggered builds.
My build.js
var browserify = require('browserify'),
watchify =…

Krustal
- 518
- 1
- 4
- 12
4
votes
1 answer
"Possible EventEmitter memory leak detected" with Gulp + Watchify + Factor bundle
I am using gulp, browserify, watchify and factor bundle to build several javascript files in development. Everything works fine, excepts after some time I start seeing this warning:
Trace
at Browserify.addListener (events.js:179:15)
at f…

Benoit Guigal
- 838
- 1
- 10
- 24
1
vote
0 answers
How to join select Browserify bundles together after Factor-Bundle?
I'm using Factor-Bundle with Browserify to generate multiple partial bundles and a larger common.js file with all of the common requirements. However, one of the partial bundles corresponds to my main entrypoint, main.js which I would actually like…

Trevor Buckner
- 588
- 2
- 13
1
vote
0 answers
Is it possible to include factor-bundle in order to separate common dependencies?
Hi I'm looking to create a common bundle with dependencies shared by multiple pages and a page specific bundle for each page.
I can use this to create the multiple bundles:browserify-multiple-destination
But I need to create the common file with…

Neatpixels
- 75
- 1
- 9
1
vote
0 answers
Extracting vendor libraries from factor-bundle
I am creating a semi-automatic build pipeline for my application using npm, Gulp, and browserify. This is what I'm trying to accomplish:
Have page specific files which I can include via script tags (i.e. page1.js, page2.js, ...)
Factor out my…

linkleonard
- 93
- 7
0
votes
1 answer
Using proxyquire in a browserify factor bundle
Stuck with this one.
I am using laravel elxir with tsify to generate my js. I run the typescript through factor-bundle to split common js modules into a seperate files. I don't think though that will be a problem in this case because everything is…

Simon
- 2,484
- 6
- 35
- 54