1. duo-css-compat
Duo plugin to support the component styles array
duo-css-compat
Package: duo-css-compat
Created by: duojs
Last modified: Thu, 16 Jun 2022 01:45:31 GMT
Version: 0.3.1
License: MIT
Downloads: 66
Repository: https://github.com/duojs/css-compat

Install

npm install duo-css-compat
yarn add duo-css-compat

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 <[email protected]>

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.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code