File tree Expand file tree Collapse file tree 1 file changed +22
-32
lines changed Expand file tree Collapse file tree 1 file changed +22
-32
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- var fs = require ( 'fs' )
4
- , compressor = require ( 'node-minify' )
5
- ;
3
+ var fs = require ( 'fs' ) ,
4
+ compressor = require ( 'node-minify' ) ;
6
5
7
6
new compressor . minify ( {
8
- type : 'gcc' ,
9
- fileIn : '../intro.js' ,
10
- fileOut : '../minified/intro.min.js' ,
11
- callback : function ( err )
12
- {
13
- if ( err )
14
- {
15
- console . log ( err ) ;
16
- }
17
- else
18
- {
19
- console . log ( "JS minified" ) ;
20
- }
21
- }
7
+ type : 'gcc' ,
8
+ fileIn : '../intro.js' ,
9
+ fileOut : '../minified/intro.min.js' ,
10
+ callback : function ( err ) {
11
+ if ( err ) {
12
+ console . log ( err ) ;
13
+ } else {
14
+ console . log ( "JS minified" ) ;
15
+ }
16
+ }
22
17
} ) ;
23
18
24
19
new compressor . minify ( {
25
- type : 'yui-css' ,
26
- fileIn : '../introjs.css' ,
27
- fileOut : '../minified/introjs.min.css' ,
28
- callback : function ( err )
29
- {
30
- if ( err )
31
- {
32
- console . log ( err ) ;
33
- }
34
- else
35
- {
36
- console . log ( "CSS minified" ) ;
37
- }
20
+ type : 'yui-css' ,
21
+ fileIn : '../introjs.css' ,
22
+ fileOut : '../minified/introjs.min.css' ,
23
+ callback : function ( err ) {
24
+ if ( err ) {
25
+ console . log ( err ) ;
26
+ } else {
27
+ console . log ( "CSS minified" ) ;
38
28
}
39
- } ) ;
40
-
29
+ }
30
+ } ) ;
You can’t perform that action at this time.
0 commit comments