Skip to content

Commit 1c06272

Browse files
committed
add bundle collapser
1 parent 0970c1b commit 1c06272

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BIN := ./node_modules/.bin/
44
build:
55
$(BIN)coffee -c --no-header -o ./dist/ ./src/payform.coffee
66
$(BIN)uglify -s ./dist/payform.js -o ./dist/payform.min.js
7-
$(BIN)browserify -t coffeeify --extension='.coffee' ./src/jquery.payform.coffee > ./dist/jquery.payform.js
7+
$(BIN)browserify -p bundle-collapser/plugin -t coffeeify --extension='.coffee' ./src/jquery.payform.coffee > ./dist/jquery.payform.js
88
$(BIN)uglify -s ./dist/jquery.payform.js -o ./dist/jquery.payform.min.js
99

1010
watch: build

dist/jquery.payform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
22
var payform;
33

4-
payform = require('./payform');
4+
payform = require(2);
55

66
(function($) {
77
$.payform = payform;
@@ -29,7 +29,7 @@ payform = require('./payform');
2929

3030

3131

32-
},{"./payform":2}],2:[function(require,module,exports){
32+
},{}],2:[function(require,module,exports){
3333

3434
/*
3535
Payform Javascript Library

dist/jquery.payform.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"uglify": "~0.1.1",
3030
"mocha": "~2.1.0",
3131
"browserify": "~8.1.3",
32-
"coffeeify": "~1.0.0"
32+
"coffeeify": "~1.0.0",
33+
"bundle-collapser": "~1.1.1"
3334
}
3435
}

0 commit comments

Comments
 (0)