mobi-css
v0.1.5
Published
Strip out CSS that affects Mobi validation and/or performance. Returns a promise object.
Downloads
6
Readme
mobi-css
Strip out CSS that affects Mobi validation and/or performance. Returns a promise object.
Install
$ npm i -S mobi-css
Usage
import path from 'path'
import mobicss from 'mobi-css'
const options = {
input: [
path.join(__dirname, 'css/styles1.css'),
path.join(__dirname, 'css/styles2.css'),
],
output: 'string' // [string|buffer] default: buffer
}
mobicss.strip(options).catch(err => console.error(err))