Add strip-bomify
Somehow this wasn't a problem before, but now it is. Some files have a BOM (jquery scrollintoview plugin is one) and browserify typically strips these, but only if they are at the beginning of the stream. With browserify-shim, the BOM will be inside the IFFE.
Showing
... | ... | @@ -13,6 +13,7 @@ |
"extend": "^2.0.0", | ||
"hammerjs": "^2.0.4", | ||
"node-uuid": "^1.4.3", | ||
"strip-bomify": "^0.1.0", | ||
"uglify-js": "^2.4.14" | ||
}, | ||
"devDependencies": { | ||
... | ... | @@ -42,6 +43,7 @@ |
"homepage": "https://github.com/hypothesis/h", | ||
"browserify": { | ||
"transform": [ | ||
"strip-bomify", | ||
"coffeeify", | ||
"browserify-shim" | ||
] | ||
... | ... |
Please register or sign in to comment