A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.
493
stars
51
forks
source link
custom bower directory in browserify result js #51
I have a custom .bowerrc and in the resulting "bundle.js" including the complete path (see bundle.js below). Everything else looks good, except this path related problem.
$ browserify index.js -o bundle.js
Result
bundle.js
...
function(require,module,exports){
require("./../../../../projectname/vendor/bower_components/seiyria-bootstrap-slider/js/bootstrap-slider.js");
...
-- all good from here --
/*! =========================================================
* bootstrap-slider.js
....
I have a custom .bowerrc and in the resulting "bundle.js" including the complete path (see bundle.js below). Everything else looks good, except this path related problem.
$ browserify index.js -o bundle.js
Result
bundle.js
Setup
index.js
.bowerrc
package.json
I have the same issue with all other require statements related to bower as well.