Skip to content

Commit a284fc9

Browse files
committed
Bump grunt-browserify dep. Welp, they broke the API again. Closes cburgmer#137
1 parent d900463 commit a284fc9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Gruntfile.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function (grunt) {
3838
src: 'node_modules/xmlserializer/lib/serializer.js',
3939
dest: 'build/dependencies/xmlserializer.js',
4040
options: {
41-
bundleOptions: {
41+
browserifyOptions: {
4242
standalone: 'xmlserializer'
4343
}
4444
}
@@ -47,7 +47,7 @@ module.exports = function (grunt) {
4747
src: 'node_modules/sane-domparser-error/index.js',
4848
dest: 'build/dependencies/sane-domparser-error.js',
4949
options: {
50-
bundleOptions: {
50+
browserifyOptions: {
5151
standalone: 'sanedomparsererror'
5252
}
5353
}
@@ -56,7 +56,7 @@ module.exports = function (grunt) {
5656
src: 'node_modules/url/url.js',
5757
dest: 'build/dependencies/url.js',
5858
options: {
59-
bundleOptions: {
59+
browserifyOptions: {
6060
standalone: 'url'
6161
}
6262
}
@@ -65,7 +65,7 @@ module.exports = function (grunt) {
6565
src: 'node_modules/css-mediaquery/index.js',
6666
dest: 'build/dependencies/cssmediaquery.js',
6767
options: {
68-
bundleOptions: {
68+
browserifyOptions: {
6969
standalone: 'cssMediaQuery'
7070
}
7171
}
@@ -74,7 +74,7 @@ module.exports = function (grunt) {
7474
src: 'node_modules/inlineresources/src/inline.js',
7575
dest: 'build/dependencies/inlineresources.js',
7676
options: {
77-
bundleOptions: {
77+
browserifyOptions: {
7878
'standalone': 'inlineresources'
7979
}
8080
}
@@ -83,11 +83,9 @@ module.exports = function (grunt) {
8383
src: 'dist/rasterizeHTML.js',
8484
dest: 'build/rasterizeHTML.allinone.js',
8585
options: {
86-
bundleOptions: {
86+
browserifyOptions: {
8787
standalone: 'rasterizeHTML'
88-
},
89-
// Don't use the dependency browserify is providing. Use the one we fixed in package.json
90-
alias: ['node_modules/url/url.js:url']
88+
}
9189
}
9290
}
9391
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"grunt": "~0.4.1",
36-
"grunt-browserify": "~2.0.7",
36+
"grunt-browserify": "~5.0.0",
3737
"grunt-cli": "~0.1",
3838
"grunt-contrib-clean": "~1.0.0",
3939
"grunt-contrib-concat": "~1.0.0",

0 commit comments

Comments
 (0)