makestatic-preset-parse
v1.0.23
Published
Parse lifecycle preset
Downloads
17
Maintainers
Readme
Parse Preset
Preset plugin configuration for the parse phase
Configures the parse lifecycle phase with standard plugins.
Install
yarn add makestatic-preset-parse
API
preset
preset(options)
Configures standard plugins for the parse lifecycle phase.
Plugins are configured with sensible default values but you can override the configuration when necessary.
This preset will enable parsers for HTML, CSS and Javascript files but if
you specify the corresponding option as false
you can disable specific
parsers.
If the exclude
map option is given you can assign to the relevant parser
plugins using the html
, css
and js
properties.
options
Object plugin options.
Options
test
Object map of file test patterns.html
Object options for theparse-html
plugin.css
Object options for theparse-css
plugin.js
Object options for theparse-js
plugin.exclude
Object map of excludes.
See Also
License
MIT
Created by mkdoc on March 12, 2017