Unable to include fs.js (node externs) in my code. I am using google closure compiler along with node.js -
i want use fs.js in application. trying include line in application, google closure compiler throws error:
var fs = require('fs'); pa057887mac:project_test khuranar$ grunt build running "exec:closure_dependencies" (exec) task running "closure-compiler:build" (closure-compiler) task >> grunt-google-closure-compiler: /src/main.js:7: error - failed load module "fs" >> var fs = require('fs'); >> ^ >> >> 1 error(s), 0 warning(s) warning: compilation error use --force continue. aborted due warnings.
i know related combination of closure compiler nodejs.
fyi - if use command line check whether application reading file or not, does. persoanlly think, there should changes done gruntfile, not sure. it'll great if help.
i new google closure compiler.
thanks, ritika
Comments
Post a Comment