forked from usablica/intro.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.js
43 lines (39 loc) · 863 Bytes
/
BUILD.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
41
42
43
#!/usr/bin/env node
var fs = require('fs'),
compressor = require('node-minify');
new compressor.minify({
type: 'gcc',
fileIn: '../intro.js',
fileOut: '../minified/intro.min.js',
callback: function (err) {
if (err) {
console.log(err);
} else {
console.log("JS minified successfully.");
}
}
});
new compressor.minify({
type: 'yui-css',
fileIn: '../introjs.css',
fileOut: '../minified/introjs.min.css',
callback: function (err) {
if (err) {
console.log(err);
} else {
console.log("Main CSS minified successfully.");
}
}
});
new compressor.minify({
type: 'yui-css',
fileIn: '../introjs-rtl.css',
fileOut: '../minified/introjs-rtl.min.css',
callback: function (err) {
if (err) {
console.log(err);
} else {
console.log("RTL CSS minified successfully.");
}
}
});