1.0.4 • Published 10 years ago
babel-plugin-css-template v1.0.4
babel-plugin-css-template
A plugin for Babel 6 that removes whitespace and minifies css written using template strings.
Installation
$ npm install babel-plugin-css-template --save-dev
$ babel --plugins css-template script.jsImportant
This plugin needs to be run before transform-es2015-template-literals.
Usage
All template strings tagged with the css tag will be minified and all unneeded white-space will be removed.
For instance:
let styles = css`
icon-component {
margin: 0 5px 0 0;
}
`;becomes:
var styles = "icon-component{margin:0 5px 0 0}";License
Copyright (c) 2016 Dlmma IVS. Released under the MIT license.