broccoli-cssnext-single
The broccoli-cssnext-single plugin compiles .css
files with
cssnext.
This plugin is designed to compile a single, primary input file
into a single output file, with a tree of @import
d dependencies. This
differs from broccoli-cssnext,
which compiles each .css
file individually into a .css
file and doesn't
support @import
s or a single output file depending on multiple inputs.
This code is based heavily on broccoli-less-single
Installation
npm install --save-dev broccoli-cssnext-single
Usage
var compileCssnext = ; var outputTree =
-
inputTrees
: An array of trees that act as the include paths for cssnext. If you have a single tree, pass[tree]
. -
inputFile
: Relative path of the main.css
file to compile. This file must exist in one of theinputTrees
. -
outputFile
: Relative path of the output CSS file. -
options
: A hash of options for cssnext.
Example
var appCss =
@import
-Example
/* file: sub.css */ /* =================== */ /* file: app.css */;