jmrocela / munchjs

munch.js is a utility that rewrites classes and ids in CSS, HTML, and JavaScript files in order to save precious bytes and obfuscate your code. based on http://htmlmuncher.com
http://jmrocela.github.io/munchjs/
MIT License
83 stars 12 forks source link

Error when calling munch #23

Open iamdriz opened 9 years ago

iamdriz commented 9 years ago

@jmrocela

If I run:

cd /Users/Cameron/Desktop/munch
Cameron:munch cameron$ munch --view Scale.html --js Grid.js

I get the following errors:

fs.js:438
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory './usage'
    at Object.fs.openSync (fs.js:438:18)
    at Object.fs.readFileSync (fs.js:289:15)
    at Object.exports.run (/usr/local/lib/node_modules/munch/munch.js:859:31)
    at Object.<anonymous> (/usr/local/lib/node_modules/munch/bin/munch:7:27)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
Cameron:munch cameron$ 
iamdriz commented 9 years ago

Any updates on this? Thanks.

luixxiul commented 9 years ago

+1 @jmrocela

arlusf commented 9 years ago

You can copy the usage file to the folder you run the munch command from. Or modify munch.js (refer to the fork commit) The path to these files on my system was: C:\Documents and Settings\yourname\Application Data\npm\node_modules\munch

jmrocela commented 9 years ago

been busy lately. @arlusf maybe put a pull request in?

arlusf commented 9 years ago

ok