add maraoz version of browserify-buffertools to copay
This commit is contained in:
parent
1b545ea444
commit
691235bec7
1 changed files with 6 additions and 3 deletions
|
|
@ -25,8 +25,6 @@ var pack = function (params) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var createBundle = function(opts) {
|
var createBundle = function(opts) {
|
||||||
|
|
||||||
|
|
||||||
opts.dir = opts.dir || 'js/';
|
opts.dir = opts.dir || 'js/';
|
||||||
|
|
||||||
// concat browser vendor files
|
// concat browser vendor files
|
||||||
|
|
@ -39,10 +37,15 @@ var createBundle = function(opts) {
|
||||||
insertGlobals: true
|
insertGlobals: true
|
||||||
};
|
};
|
||||||
var b = browserify(bopts);
|
var b = browserify(bopts);
|
||||||
|
|
||||||
|
b.require('bitcore/node_modules/browserify-buffertools/buffertools.js', {
|
||||||
|
expose: 'buffertools'
|
||||||
|
});
|
||||||
|
|
||||||
b.require('./copay', {
|
b.require('./copay', {
|
||||||
expose: 'copay'
|
expose: 'copay'
|
||||||
});
|
});
|
||||||
b.external('bitcore');
|
// b.external('bitcore');
|
||||||
b.require('./js/models/core/WalletFactory');
|
b.require('./js/models/core/WalletFactory');
|
||||||
b.require('./js/models/core/Wallet');
|
b.require('./js/models/core/Wallet');
|
||||||
b.require('./js/models/core/Wallet', {
|
b.require('./js/models/core/Wallet', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue