This plugin runs, in the default setup, with the following configuration:
dom: { files : ['*.html'], options : { dir: process.cwd(), output: 'css/style.min.css' }, 'script[data-build]' : h5bp.plugins.link },
It uses r.js to optimize a single css file, and properly handle the @import statements you might have.
@import
Default optimization options for rjs are as follows:
optimizeCss='standard.keepLines'
The output is based on data-build from the <link> tag, or defaults to css/style.min.css.
data-build
<link>
css/style.min.css
dir base directory to work from
output default output destination, if not defined through data-build.
rjs requirejs css optimization option.
There was an error while loading. Please reload this page.
» Home
» dom-based
» css
» js