Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

duo-css-compat

duojs79MIT0.3.1

Duo plugin to support the component styles array

readme

css-compat

[![NPM version][https://img.shields.io/npm/v/duo-css-compat.svg]][https://npmjs.org/package/duo-css-compat] [![build status][https://img.shields.io/travis/duojs/css-compat.svg]][https://travis-ci.org/duojs/css-compat]

This plugin is included in core Duo

Duo plugin to support the component styles array and dependencies with CSS assets for backwards compatibility.

This will only trigger on css files and if the component you are downloading has a styles: [...] array.

Future Components

This plugin does slow Duo down a bit when it triggers, so I urge you to write future CSS components that use the new @import syntax. This has the added benefit of only requiring what you actually use and ensuring proper ordering of CSS assets.

Usage

API

var compat = require('duo-css-compat');

Duo(root)
  .use(compat())
  .entry('index.css')
  .run(fn);

CLI

$ duo --use duo-css-compat

License

(The MIT License)

Copyright (c) 2014 Matthew Mueller <mattmuelle@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

changelog

0.3.1 / 2016-07-21

  • blindly updating duo-main
  • package: Add "license" field

0.3.0 / 2015-07-11

  • updating package internally, adding cache support
  • eslint

0.2.0 / 2015-06-24

  • adding token option for setting auth

0.1.0 / 2015-06-23

  • updating dependencies and fixing tests

0.0.6 / 2015-03-03

  • package: Fix repository url

0.0.5 / 2015-03-03

  • package: Update gnode to 0.1.1
  • index: Change component_compat -> compatibility

0.0.4 / 2014-10-27

  • bump duo-package
  • remove duo from dependencies

0.0.3 / 2014-09-02

  • check for existence and include index.css if there is no main or styles
  • add debug dep, update makefile

0.0.2 / 2014-09-02

  • improve and reduce probability of this plugin getting triggered
  • added debug. clone JSON object.
  • proper support for styles: [ ... ] and CSS dependencies: { ... }
  • update readme

0.0.1 / 2010-01-03

  • Initial release