sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
433 B

define([
"../buildControl",
"../fileUtils",
"../fs",
"../replace"
], function(bc, fileUtils, fs, replace) {
return function(resource, callback) {
if(resource.tag.noWrite){
return 0;
}
fileUtils.ensureDirectoryByFilename(resource.dest);
fs.writeFile(resource.dest, bc.newlineFilter(resource.getText(), resource, "write"), resource.encoding, function(err) {
callback(resource, err);
});
return callback;
};
});