Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

makestatic-preset-optimize

makestatic20MIT1.2.8

Optimize lifecycle preset

makestatic, preset, optimize

readme

Optimize Preset

Preset plugin configuration for the optimize phase

Configures the optimize lifecycle phase with standard plugins.



Install

yarn add makestatic-preset-optimize

API

preset

preset(options)

Configures standard plugins for the optimize lifecycle phase.

Plugins are configured with sensible default values but you can override the configuration when necessary.

  • options Object plugin options.

Options

  • test Object map of file test patterns.
  • html Object options for the optimize-html plugin.
  • css Object options for the optimize-css plugin.
  • js Object options for the optimize-js plugin.
  • image Object options for the optimize-image plugin.
  • inline Object options for inline script and style compression.
  • exclude Object map of excludes.

See Also

License

MIT


Created by mkdoc on March 12, 2017