link plugin

Mickael Daniel edited this page Apr 7, 2012 · 2 revisions

Plugin - link

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]'    :

It uses r.js to optimize a single css file, and properly handle the @import statements you might have.

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.


  • dir base directory to work from

  • output default output destination, if not defined through data-build.

  • rjs requirejs css optimization option.