How to use the phantomas.metadata function in phantomas

To help you get started, we’ve selected a few phantomas examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stefanjudis / grunt-phantomas / tasks / lib / phantomas.js View on Github external
minify(
          this.grunt.file.read( TEMPLATE_FILE ),
          {
            removeComments     : true,
            // TODO fix me
            // https://github.com/stefanjudis/grunt-phantomas/issues/93
            collapseWhitespace : true
          }
        ),
        { data : {
          additionalStylesheet : this.options.additionalStylesheet,
          assertions           : this.options.assertions,
          failedAssertions     : this.failedAssertions,
          group                : this.options.group,
          images               : images,
          meta                 : phantomas.metadata.metrics,
          results              : templateResults,
          timestamp            : this.timestamp,
          url                  : this.options.url,
          version              : this.version
        } }
      )
    );

    this.grunt.log.ok(
      'Phantomas created new \'index.html\' at \'' + this.options.indexPath + '\'.'
    );

    resolve( templateResults );

  }.bind( this ) );
};

phantomas

Headless Chromium-based web performance metrics collector and monitoring tool

BSD-2-Clause
Latest version published 2 months ago

Package Health Score

77 / 100
Full package analysis

Popular phantomas functions