hashly
hashly copied to clipboard
I want to run hashly inside a js with shelljs
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?