使用下一个版本的ECMAScript编写模块化和可扩展的CSS:unistyle_html/css_WEB-ITnose

WBOY
發布: 2016-06-24 11:37:20
原創
999 人瀏覽過

unistyle实现使用下一个版本的ECMAScript编写模块化和可扩展的CSS。

Why?

使用ES2015 和一些ES2016特性来编写CSS用JavaScript让其真正的模块化,可 扩展,让你很好地实践CSS前或后处理器的所有功能,无需求助于一个新的语言。

Unistyle?

The name is an abbreviation of Uniform Stylesheets. It is also somewhat related to Universal JavaScript or what you want to call it, because of the ability to share the same CSS code written in JavaScript between your frontend component's inline styles and the application's complete CSS.

Installation

Installunistyleusing npm:

npm install --save unistyle
登入後複製

CLI Usage

$> unistyle --helpUsage: bin/unistyle [options] <path to module>Options:  -o, --output   Output compiled CSS to specified file instead of to stdout  [string]  -h, --help     Show help  [boolean]  -v, --version  Show version number  [boolean]Examples:  bin/unistyle -o app.css src/styles.js  Compile src/styles.js to app.css  bin/unistyle -o style.css style        Compile style/index.js to style.css
登入後複製

项目主页:http://www.open-open.com/lib/view/home/1441426543628

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!