We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1e9c4 commit dd097abCopy full SHA for dd097ab
minify.js/src/cli.js
@@ -1,9 +1,9 @@
1
#!/usr/bin/env node
2
3
// Import LIBS
4
-const fs = require('fs'),
5
- path = require('path'),
6
- minifyJS = require('./minify');
+const minifyJS = require(__dirname.match(/src/) ? './minify' : './minify.min'),
+ fs = require('fs'),
+ path = require('path');
7
8
// Init UI colors
9
const nc = '\x1b[0m', // no color
0 commit comments