This package has been deprecated

Author message:

Use broccoli-postcss-single, broccoli-postcss or ember-cli-postcss instead

broccoli-cssnext-single

1.2.1 • Public • Published

broccoli-cssnext-single

npm Version Build Status

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 @importd dependencies. This differs from broccoli-cssnext, which compiles each .css file individually into a .css file and doesn't support @imports 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 = require('broccoli-cssnext-single');
 
var outputTree = compileCssnext(inputTrees, inputFile, outputFile, options)
  • 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 the inputTrees.

  • outputFile: Relative path of the output CSS file.

  • options: A hash of options for cssnext.

Example

var appCss = compileCssnext(sourceTrees, 'myapp/app.css', 'assets/app.css')

@import-Example

/* file: sub.css */
h1 {
  font-size: 200em;
}
 
/* =================== */
 
/* file: app.css */
@import "sub";
 
htmlbody {
  margin: 20px;
}

Package Sidebar

Install

npm i broccoli-cssnext-single

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • topaxi