hashly icon indicating copy to clipboard operation
hashly copied to clipboard

I want to run hashly inside a js with shelljs

Open dientuki opened this issue 8 years ago • 0 comments

Hi, i want to run hashly inside a build-all.js file and it's dosn't work.

This is my code.

var shell = require('shelljs'); config.push(input + ' ' + output); config.push("--base-dir " + process.env.PWD); config.push("--manifest-format \"json\""); config.push("--rename-format \"{basename}-{hash}{extname}\""); config.push("--verbose"); config.push("--amend");

shell.exec("hashly " + config.join(" "));

and this is my line

hashly css/ dist/ --base-dir $PWD --manifest-format \"json\" --rename-format \"{basename}-{hash}{extname}\" --verbose --amend

with npm run works fine, buts inside the script with shelljs nop.

any help?

dientuki avatar Feb 20 '17 16:02 dientuki