mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 04:00:03 +02:00
throw on unhandled exceptions
This commit is contained in:
@@ -5,6 +5,8 @@ let jsdom = require('jsdom');
|
||||
let JSDOM = jsdom.JSDOM;
|
||||
let minify = require('minify');
|
||||
|
||||
process.on('unhandledRejection', up => { throw up; });
|
||||
|
||||
let usage = `usage:
|
||||
minifyfromhtml --js=<output js file> --css=<output css file> --exclude=<exclude files> < <input file>
|
||||
|
||||
|
Reference in New Issue
Block a user