@ampproject/toolbox-linter
Advanced tools
Changelog
v2.4.0 (2020-05-13)
optimizer
optimizer
core
, optimizer
linter
optimizer
lighthouse-plugin-amp
, linter
optimizer
Changelog
2.3.1 (2020-05-05)
optimizer
linter
optimizer
Changelog
2.3.0 (2020-04-15)
runtime-fetch
cli
, optimizer
cli
, runtime-version
cache-url
cache-url
, cli
cors
, optimizer-express
, optimizer
, update-cache
cli
optimizer
Changelog
2.2.0 (2020-04-03)
optimizer
cli
cli
, runtime-fetch
optimizer
cli
Changelog
2.1.0 (2020-04-01)
cli
, download-runtime
cache-url
, cli
optimizer
optimizer
cache-list
linter
optimizer
Changelog
2.0.1
optimizer
linter
cli
, lighthouse-plugin-amp
, linter
, optimizer
Changelog
2.0.0
Migration notes:
The SeparateKeyframe
transformer's compress
option has been renamed to minify
. The same option will also be used by the MinifyHtml
transformer. The default value continues to be true
.
The API for implementing a custom transformer has changed. We no longer monkey patch the node class, but instead rely on helper methods defined in NodeUtils
:
const {firstChildByTag, appendChild, createElement} =
require('@ampproject/toolbox-optimizer').NodeUtils; class CustomTransformer { constructor(config)
{ this.log_ = config.log.tag('CUSTOM'); } transform(tree, params) { this.log_.info('Running custom
transformation for ', params.filePath); const html = firstChildByTag(tree, 'html'); if (!html)
return; const head = firstChildByTag(html, 'head'); if (!head) return; const desc =
createElement('meta', { name: 'description', content: 'this is just a demo', }); appendChild(head,
desc); } }
core
, optimizer
cli
, optimizer
optimizer
cors
optimizer
cli
, core
, cors
, optimizer
, update-cache
linter
, optimizer-express
cache-list
, cache-url
, cli
, core
, cors
, lighthouse-plugin-amp
, linter
, optimizer-express
, optimizer
, runtime-version
, script-csp
, update-cache
, validator-rules