Skip to content

Commit 0f340d4

Browse files
committed
Merge pull request #28 from kuzzleio/browserify
made browserify skip node-uuid parsing
2 parents b1b5c16 + 623db23 commit 0f340d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = function(grunt) {
88

99

1010
grunt.initConfig({
11+
pkg: grunt.file.readJSON('package.json'),
1112
jshint: {
1213
all: ['Gruntfile.js', 'src/**/*.js']
1314
},
@@ -17,15 +18,20 @@ module.exports = function(grunt) {
1718
browserify: {
1819
kuzzle: {
1920
src: ['src/kuzzle.js'],
20-
dest: 'browser/kuzzle.js'
21+
dest: 'browser/kuzzle.js',
22+
options: {
23+
browserifyOptions: {
24+
noParse: [require.resolve('node-uuid')]
25+
}
26+
}
2127
}
2228
},
2329
uglify: {
2430
kuzzle: {
2531
options: {
2632
'sourceMap': true,
2733
'sourceMapName': 'browser/kuzzle.min.map',
28-
'banner': '// This is the Kuzzle SDK version 1.0 - Licenced under the Apache 2.0 Licence'
34+
'banner': '// <%= pkg.description %> v<%= pkg.version %> - License: <%= pkg.license %>'
2935
},
3036
files: {
3137
'browser/kuzzle.min.js': ['browser/kuzzle.js']

0 commit comments

Comments
 (0)