Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const compressor=require('node-minify');
- const start=Date.now();
- compressor.minify({
- compressor: 'gcc',
- input: 'server.js',
- output: 'server-min.js',
- sync: false,
- callback: function(err, min) {
- console.log('callback at '+(Date.now()-start)+'ms');
- if(err)
- console.log(err);
- }
- });
- console.log('next instruction at '+(Date.now()-start)+'ms');
- next instruction at 60390ms
- callback at 60408ms
- next instruction at 18ms
- callback at 60408ms
Add Comment
Please, Sign In to add comment