Use closure compiler from npm in build.js

This commit is contained in:
Julien Roncaglia 2019-10-17 10:11:33 +02:00 committed by Stanley Cheung
parent bf29f0272b
commit e38d7bb6c0
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ const closureArgs = [].concat(
]
);
const closureCommand = "google-closure-compiler " + closureArgs.join(' ');
const closureCompilerBin = path.resolve(__dirname, "../node_modules/.bin/google-closure-compiler");
const closureCommand = closureCompilerBin + " " + closureArgs.join(' ');
console.log(closureCommand);
let child = exec(closureCommand);