-
Notifications
You must be signed in to change notification settings - Fork 29
/
Gruntfile.tokenizr.js
40 lines (37 loc) · 1.22 KB
/
Gruntfile.tokenizr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* This Gruntfile serves to build the tokenizr library from source.
*/
/* global module: true */
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-browserify");
grunt.initConfig({
browserify: {
"tokenizr": {
files: {
"client/third-party/tokenizr/tokenizr.js": [ "node_modules/tokenizr/src/tokenizr.js" ]
},
options: {
transform: [
[ "babelify", {
presets: [
[ "@babel/preset-env", {
"targets": {
"browsers": "last 2 versions, > 1%, ie 11"
}
} ]
]
} ]
],
plugin: [
[ "browserify-derequire" ]
],
browserifyOptions: {
standalone: "Tokenizr",
debug: false
}
}
}
}
});
grunt.registerTask("default", [ "browserify" ]);
};