I use the node-minify package which has the following internal code – I modified it, so you understand what’s the problem about:
var exec = require('child_process').exec; command = '"C:/Users/username/AppData/Local/atom/app-1.0.0/atom.exe" "uglify-js/bin/uglifyjs" --output "/path/to/min.js" "/path/to/js"'; exec(command /* ... */ )
Normally, node-minify works with node and so, the command would look like this:
command = '"/path/to/node.exe" "uglify-js/bin/uglifyjs" --output "/path/to/min.js"
Is there a way to let atom exeute uglify-js the way node does? I hope you understand what I mean?!