code: function embedResources(nc, next) {
          nodeCompiler = nc;
  
          options.resourceFiles = options.resourceFiles || [];
          options.resourceRoot = options.resourceRoot || '';
  
          if (!Array.isArray(options.resourceFiles)) {
            throw new Error('Bad Argument: resourceFiles is not an array');
          }
  
          const resourcesBuffer = embed(
            options.resourceFiles,
            options.resourceRoot,
          );
  
          if (resourcesBuffer != null) {
            const resourcePath = path.join(nodeCompiler.dir, 'lib', 'nexeres.js');
            // write nexeres.js
            _log('embedResources %s', options.resourceFiles);
            _log('resource -> %s', resourcePath);
  
            fs.writeFile(resourcePath, resourcesBuffer, next);
          } else {
            next();
          }
        }
docs: Embed Resources into a base64 encoded array.